Class AbstractDatum
java.lang.Object
org.openstreetmap.josm.data.projection.datum.AbstractDatum
- All Implemented Interfaces:
Datum
- Direct Known Subclasses:
CentricDatum,NTV2Datum,NullDatum,SevenParameterDatum,ThreeParameterDatum
Abstract base class for
Datum implementations.
Adds common fields and access methods.- Since:
- 4285
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDatum(String name, String proj4Id, Ellipsoid ellps) Constructs a newAbstractDatum. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ellipsoid associated with this datum.getName()Returns a human readable name of this projection.Replies the Proj.4 identifier.
-
Field Details
-
name
-
proj4Id
-
ellps
-
-
Constructor Details
-
AbstractDatum
Constructs a newAbstractDatum.- Parameters:
name- The nameproj4Id- The Proj4 identifierellps- The ellipsoid
-
-
Method Details
-
getName
Description copied from interface:DatumReturns a human readable name of this projection. -
getProj4Id
Description copied from interface:DatumReplies the Proj.4 identifier.- Specified by:
getProj4Idin interfaceDatum- Returns:
- the Proj.4 identifier (as reported by cs2cs -ld) If no id exists, return null.
-
getEllipsoid
Description copied from interface:DatumReturns the ellipsoid associated with this datum.- Specified by:
getEllipsoidin interfaceDatum- Returns:
- the ellipsoid associated with this datum
-