Package mccombe.mapping
Class Spherical
- java.lang.Object
-
- mccombe.mapping.CoordinateSystem
-
- mccombe.mapping.Spherical
-
public class Spherical extends CoordinateSystem
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 mccombe.mapping.CoordinateSystem
locus, ref, sph
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpherical()Creates a new instance of SphericalSpherical(LatLong latLon, Ellipsoid e, Datum d)Create a new Spherical Coordinate set based on Lat/Lon, the Ellipsoid and DatumSpherical(Position p, Ellipsoid e, Datum d)Create a new Spherical Coordinate set based on a specific Position, Ellipsoid and Datum
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatumdefaultDatum()Define the DefaultDatum for this coordinate setEllipsoiddefaultEllipsoid()Define the Default Ellipsoid for this pointjava.lang.StringtoString()Provide a String representing this coordinate set-
Methods inherited from class mccombe.mapping.CoordinateSystem
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
-
-
-
-
Constructor Detail
-
Spherical
protected Spherical()
Creates a new instance of Spherical
-
Spherical
public Spherical(LatLong latLon, Ellipsoid e, Datum d)
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
-
-
Method Detail
-
defaultDatum
public Datum defaultDatum()
Define the DefaultDatum for this coordinate set- Specified by:
defaultDatumin classCoordinateSystem- Returns:
- The Default Datum
-
defaultEllipsoid
public Ellipsoid defaultEllipsoid()
Define the Default Ellipsoid for this point- Specified by:
defaultEllipsoidin classCoordinateSystem- Returns:
- The Default Ellipsoid
-
toString
public java.lang.String toString()
Provide a String representing this coordinate set- Specified by:
toStringin classCoordinateSystem- Returns:
- The String representation of the coordinates (in Lat/Lon format)
-
-