Package uk.co.mccombe.mapping
Class Spherical
java.lang.Object
uk.co.mccombe.mapping.CoordinateSystem
uk.co.mccombe.mapping.Spherical
Spherical Coordinates - an implementation of positional coordinates based on
Latitude and Longitude. Whilst often not explicitly stated in practice, these
are relative to a specified datum and ellipsoid.
-
Field Summary
Fields inherited from class uk.co.mccombe.mapping.CoordinateSystem
locus, ref, sph
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of SphericalCreate a new Spherical Coordinate set based on Lat/Lon, the Ellipsoid and DatumCreate a new Spherical Coordinate set based on a specific Position, Ellipsoid and Datum -
Method Summary
Modifier and TypeMethodDescriptionDefine the DefaultDatum for this coordinate setDefine the Default Ellipsoid for this pointtoString()
Provide a String representing this coordinate setMethods inherited from class uk.co.mccombe.mapping.CoordinateSystem
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
-
Constructor Details
-
Spherical
protected Spherical()Creates a new instance of Spherical -
Spherical
Create a new Spherical Coordinate set based on Lat/Lon, the Ellipsoid and Datum- Parameters:
latLon
- A LatLong object containing the Latitude and Longitude of the pointe
- The Ellipsoid used to define Lat and Lond
- The Datum used to determine the Lat / Lon
-
Spherical
Create a new Spherical Coordinate set based on a specific Position, Ellipsoid and Datum- Parameters:
p
- The Positione
- The Ellipsoid to use when translating this Positiond
- The Datum to use when representing this point.
-
-
Method Details
-
defaultDatum
Define the DefaultDatum for this coordinate set- Specified by:
defaultDatum
in classCoordinateSystem
- Returns:
- The Default Datum
-
defaultEllipsoid
Define the Default Ellipsoid for this point- Specified by:
defaultEllipsoid
in classCoordinateSystem
- Returns:
- The Default Ellipsoid
-
toString
Provide a String representing this coordinate set- Specified by:
toString
in classCoordinateSystem
- Returns:
- The String representation of the coordinates (in Lat/Lon format)
-