org.openstreetmap.josm.data.projection.datum
Class CentricDatum

java.lang.Object
  extended by org.openstreetmap.josm.data.projection.datum.AbstractDatum
      extended by org.openstreetmap.josm.data.projection.datum.CentricDatum
All Implemented Interfaces:
Datum

public class CentricDatum
extends AbstractDatum

A datum with different ellipsoid than WGS84, but does not require shift, rotation or scaling.


Field Summary
 
Fields inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
ellps, name, proj4Id
 
Constructor Summary
CentricDatum(java.lang.String name, java.lang.String proj4Id, Ellipsoid ellps)
           
 
Method Summary
 LatLon fromWGS84(LatLon ll)
          Convert lat/lon from WGS84 to this datum.
 java.lang.String toString()
           
 LatLon toWGS84(LatLon ll)
          Convert lat/lon from this datum to WGS84 datum.
 
Methods inherited from class org.openstreetmap.josm.data.projection.datum.AbstractDatum
getEllipsoid, getName, getProj4Id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CentricDatum

public CentricDatum(java.lang.String name,
                    java.lang.String proj4Id,
                    Ellipsoid ellps)
Method Detail

toWGS84

public LatLon toWGS84(LatLon ll)
Description copied from interface: Datum
Convert lat/lon from this datum to WGS84 datum.


fromWGS84

public LatLon fromWGS84(LatLon ll)
Description copied from interface: Datum
Convert lat/lon from WGS84 to this datum.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


JOSM