public final class LatLong extends Coordinates<GeographicCRS<?>>
geographic latitude/longitude
coordinates onto the WGS84 ellipsoid.| Modifier and Type | Field and Description |
|---|---|
static GeographicCRS<LatLong> |
CRS
Holds the coordinate reference system for all instances of this class.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, getCoordinates, getPosition, setOrdinate, toString, toTextpublic static final GeographicCRS<LatLong> CRS
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)
doubleunit - the angle unit of the latitude to return.public final double longitudeValue(Unit<Angle> unit)
doubleunit - the angle unit of the longitude to return.public GeographicCRS<LatLong> getCoordinateReferenceSystem()
CoordinatesgetCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<GeographicCRS<?>>public int getDimension()
CoordinatesgetDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<GeographicCRS<?>>public double getOrdinate(int dimension)
throws IndexOutOfBoundsException
CoordinatesgetOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate in class Coordinates<GeographicCRS<?>>dimension - The dimension in the range 0 to
dimension-1.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public LatLong copy()
Coordinatesallocated
by the calling thread (possibly on the stack).copy in interface javolution.lang.ValueTypecopy in class Coordinates<GeographicCRS<?>>