? CoordinateSystem

java.lang.Object
mccombe.mapping.CoordinateSystem
??????:
Projection, Spherical

public abstract class CoordinateSystem extends Object
Abstract base class for coordinate systems in general. Each instance of CoordinateSystem contains a Position and references to the Ellipsoid and Datum from which the coordinates are derived. The position itself is independent of Ellipsoid and Datum.
  • ??????

    • locus

      protected Position locus
      The Position of this Coordinate
    • sph

      protected Ellipsoid sph
      The Ellipsoid for this point
    • ref

      protected Datum ref
      The Datum for this point
  • ???????

    • CoordinateSystem

      protected CoordinateSystem()
      Creates a new instance of CoordinateSystem using the default Ellipsoid and Datum
    • CoordinateSystem

      public CoordinateSystem(Position pos, Ellipsoid e, Datum d)

      Create a new instance of CoordinateSystem for a specific Position, Ellipsoid and Datum

      ??:
      pos - Position of the point in this CoordinateSystem
      e - Ellipsoid to be used in this CoordinateSystem
      d - Datum for this instance of CopordinateSystem
  • ??????

    • toLatLong

      public LatLong toLatLong()
      Get the Latitude and Longitude for this point. Note the result is referred to the current datum and ellipsoid
      ??:
      LatLong object containing latitude and longitude
    • toLatLongString

      public String toLatLongString()
      Return a String containing values of Latitude and Longitude.referred to the current Ellipsoid and Datum
      ??:
      String containing Latitude and Longitude in degrees. North or East are represented by positive values, South or West are negative.
    • getDatum

      public Datum getDatum()
      Get the Datum used by this point
      ??:
      The Datum associated with this point
    • getEllipsoid

      public Ellipsoid getEllipsoid()
      Get the Ellipsoid used by this point
      ??:
      Ellipsoid
    • getName

      public String getName()

      Get the name of this CoordinateSystem. By default, this method returns the short name of the class. For example, an instance of mccombe.mapping.IrishGrid returns the name "IrishGrid".

      Implementers of sub-classes of CoordinateSystem are encouraged to override this method if a more descriptive name is needed

      ??:
      The name of the CoordinateSystem
    • getPosition

      public Position getPosition()
      Get the Position of this point
      ??:
      The Position of this point
    • getWGS84

      public XYZ getWGS84()
      Get the "absolute" cartesian coordinates for this location. These are based on the WGS-84 datum and coordinate system.
      ??:
      XYZ object containing the cartesian coordinates for this point.
    • defaultEllipsoid

      public abstract Ellipsoid defaultEllipsoid()
      The default Ellipsoid used by instances of this CoordinateSystem For example, a CoordinateSystem of type OSGB has the AirySphere as its default Ellipsoid
      ??:
      The Ellipsoid used as the deafult for this CoordinateSystem
    • defaultDatum

      public abstract Datum defaultDatum()
      Get the defaul Datum for an instance of CoordinateSystem. For example, instances of OSGB usually use the OSGB 1936 datum.
      ??:
      The default Datum used by this instance of CoordinateSystem
    • toString

      public abstract String toString()
      Provide a String representing the position in a correct format for the CoordinateSystem
      ??:
      toString ??? Object
      ??:
      String
    • parseDouble

      protected static double parseDouble(String s) throws ParseException
      ??:
      ParseException