|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.Coordinates<GeographicCRS<?>>
org.jscience.geography.coordinates.LatLong
public final class LatLong
This class represents the geographic latitude/longitude
coordinates onto the WGS84 ellipsoid.
| Field Summary | |
|---|---|
static GeographicCRS<LatLong> |
CRS
Holds the coordinate reference system for all instances of this class. |
| Method Summary | |
|---|---|
LatLong |
copy()
Returns a copy of these coordinates allocated
by the calling thread (possibly on the stack). |
GeographicCRS<LatLong> |
getCoordinateReferenceSystem()
Returns the reference system for this coordinates. |
int |
getDimension()
OpenGIS® - The length of coordinate sequence (the number of entries). |
double |
getOrdinate(int dimension)
OpenGIS® - Returns the ordinate at the specified dimension. |
double |
latitudeValue(Unit<Angle> unit)
Returns the latitude value as double |
double |
longitudeValue(Unit<Angle> unit)
Returns the longitude value as double |
static LatLong |
valueOf(double latitude,
double longitude,
Unit<Angle> unit)
Returns the surface position corresponding to the specified coordinates. |
| Methods inherited from class org.jscience.geography.coordinates.Coordinates |
|---|
clone, getCoordinates, getPosition, setOrdinate, toString, toText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final GeographicCRS<LatLong> CRS
| Method Detail |
|---|
public static LatLong valueOf(double latitude,
double longitude,
Unit<Angle> unit)
latitude - the latitude value stated in the specified unit.longitude - the longitude value stated in the specified unit.unit - the angle unit in which the coordinates are stated
(Degree typically).
public final double latitudeValue(Unit<Angle> unit)
double
unit - the angle unit of the latitude to return.
public final double longitudeValue(Unit<Angle> unit)
double
unit - the angle unit of the longitude to return.
public GeographicCRS<LatLong> getCoordinateReferenceSystem()
Coordinates
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<GeographicCRS<?>>public int getDimension()
Coordinates
getDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<GeographicCRS<?>>
public double getOrdinate(int dimension)
throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate in class Coordinates<GeographicCRS<?>>dimension - The dimension in the range 0 to
dimension-1.
java.lang.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public LatLong copy()
Coordinatesallocated
by the calling thread (possibly on the stack).
copy in interface ValueTypecopy in class Coordinates<GeographicCRS<?>>
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||