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, toText
public 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)
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 class Coordinates<GeographicCRS<?>>
public int getDimension()
Coordinates
getDimension
in class Coordinates<GeographicCRS<?>>
public double getOrdinate(int dimension) throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate
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()
Coordinates
allocated
by the calling thread (possibly on the stack).copy
in interface javolution.lang.ValueType
copy
in class Coordinates<GeographicCRS<?>>