Class 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.
  • Constructor Details

    • 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 point
      e - The Ellipsoid used to define Lat and Lon
      d - The Datum used to determine the Lat / Lon
    • Spherical

      public Spherical(Position p, Ellipsoid e, Datum d)
      Create a new Spherical Coordinate set based on a specific Position, Ellipsoid and Datum
      Parameters:
      p - The Position
      e - The Ellipsoid to use when translating this Position
      d - The Datum to use when representing this point.
  • Method Details

    • defaultDatum

      public Datum defaultDatum()
      Define the DefaultDatum for this coordinate set
      Specified by:
      defaultDatum in class CoordinateSystem
      Returns:
      The Default Datum
    • defaultEllipsoid

      public Ellipsoid defaultEllipsoid()
      Define the Default Ellipsoid for this point
      Specified by:
      defaultEllipsoid in class CoordinateSystem
      Returns:
      The Default Ellipsoid
    • toString

      public String toString()
      Provide a String representing this coordinate set
      Specified by:
      toString in class CoordinateSystem
      Returns:
      The String representation of the coordinates (in Lat/Lon format)