Class DatumWrapper
java.lang.Object
org.locationtech.proj4j.geoapi.Wrapper
org.locationtech.proj4j.geoapi.DatumWrapper
- All Implemented Interfaces:
Serializable, org.opengis.metadata.Identifier, org.opengis.referencing.datum.Datum, org.opengis.referencing.datum.GeodeticDatum, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceIdentifier
final class DatumWrapper
extends Wrapper
implements org.opengis.referencing.datum.GeodeticDatum, Serializable
Wraps a PROJ4J implementation behind the equivalent GeoAPI interface.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final DatumThe wrapped PROJ4 implementation.private final PrimeMeridianThe prime meridian, ornullfor GreenwichFields inherited from class Wrapper
BIDIMENSIONAL, TRIDIMENSIONALFields inherited from interface org.opengis.referencing.datum.Datum
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEYFields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDatumWrapper(Datum impl, PrimeMeridian pm) Creates a new wrapper for the given PROJ4J implementation. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.opengis.util.GenericName> getAlias()Returns other names of this object.org.opengis.util.InternationalStringgetCode()Returns the long name if available, or the short name otherwise.org.opengis.referencing.datum.EllipsoidReturns the PROJ4J ellipsoid wrapped behind the GeoAPI interface.org.opengis.referencing.datum.PrimeMeridianReturns the hard-coded Greenwich prime meridian.(package private) ObjectReturns the PROJ4J backing implementation.(package private) static DatumWrapperWraps the given implementation.(package private) static DatumWrapperWraps the given implementation.Methods inherited from class Wrapper
equals, getAuthority, getCodeSpace, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toString, toWKTMethods inherited from interface org.opengis.referencing.datum.Datum
getDomainOfValidity, getScopeMethods inherited from interface org.opengis.referencing.IdentifiedObject
getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
impl
The wrapped PROJ4 implementation. -
pm
The prime meridian, ornullfor Greenwich
-
-
Constructor Details
-
DatumWrapper
Creates a new wrapper for the given PROJ4J implementation.
-
-
Method Details
-
wrap
Wraps the given implementation.- Parameters:
impl- the implementation to wrap, ornull- Returns:
- the wrapper, or
nullif the given implementation was null
-
wrap
Wraps the given implementation.- Parameters:
crs- the CRS to wrap, ornull- Returns:
- the wrapper, or
nullif the given implementation was null
-
implementation
Object implementation()Returns the PROJ4J backing implementation..- Specified by:
implementationin classWrapper- Returns:
- the PROJ4J backing implementation
-
getCode
Returns the long name if available, or the short name otherwise.. In the EPSG database, the primary name is usually the long name. -
getAlias
Returns other names of this object.. In the EPSG database, this is usually the short name (the abbreviation). -
getEllipsoid
public org.opengis.referencing.datum.Ellipsoid getEllipsoid()Returns the PROJ4J ellipsoid wrapped behind the GeoAPI interface..- Specified by:
getEllipsoidin interfaceorg.opengis.referencing.datum.GeodeticDatum- Returns:
- the PROJ4J ellipsoid wrapped behind the GeoAPI interface
-
getPrimeMeridian
public org.opengis.referencing.datum.PrimeMeridian getPrimeMeridian()Returns the hard-coded Greenwich prime meridian..- Specified by:
getPrimeMeridianin interfaceorg.opengis.referencing.datum.GeodeticDatum- Returns:
- the hard-coded Greenwich prime meridian
-
getAnchorPoint
public org.opengis.util.InternationalString getAnchorPoint()- Specified by:
getAnchorPointin interfaceorg.opengis.referencing.datum.Datum
-
getRealizationEpoch
- Specified by:
getRealizationEpochin interfaceorg.opengis.referencing.datum.Datum
-