Class AbstractDatum

java.lang.Object
org.openstreetmap.josm.data.projection.datum.AbstractDatum
All Implemented Interfaces:
Datum
Direct Known Subclasses:
CentricDatum, NTV2Datum, NullDatum, SevenParameterDatum, ThreeParameterDatum

public abstract class AbstractDatum extends Object implements Datum
Abstract base class for Datum implementations. Adds common fields and access methods.
Since:
4285
  • Field Details

  • Constructor Details

    • AbstractDatum

      protected AbstractDatum(String name, String proj4Id, Ellipsoid ellps)
      Constructs a new AbstractDatum.
      Parameters:
      name - The name
      proj4Id - The Proj4 identifier
      ellps - The ellipsoid
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Datum
      Returns a human readable name of this projection.
      Specified by:
      getName in interface Datum
      Returns:
      a human readable name of this projection
    • getProj4Id

      public String getProj4Id()
      Description copied from interface: Datum
      Replies the Proj.4 identifier.
      Specified by:
      getProj4Id in interface Datum
      Returns:
      the Proj.4 identifier (as reported by cs2cs -ld) If no id exists, return null.
    • getEllipsoid

      Description copied from interface: Datum
      Returns the ellipsoid associated with this datum.
      Specified by:
      getEllipsoid in interface Datum
      Returns:
      the ellipsoid associated with this datum