public class DefaultGeodeticDatum extends AbstractDatum implements GeodeticDatum
Ellipsoid
,
PrimeMeridian
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
BURSA_WOLF_KEY
The
"bursaWolf" property for datum
shifts. |
static DefaultGeodeticDatum |
WGS84
The default WGS 1984 datum.
|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
DefaultGeodeticDatum(GeodeticDatum datum)
Constructs a new datum with the same values than the specified one.
|
DefaultGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
Constructs a geodetic datum from a set of properties.
|
DefaultGeodeticDatum(String name,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
Constructs a geodetic datum from a name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this datum with the specified object for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
static Matrix |
getAffineTransform(GeodeticDatum source,
GeodeticDatum target)
Returns a matrix that can be used to define a transformation to the specified datum.
|
BursaWolfParameters[] |
getBursaWolfParameters()
Returns all Bursa Wolf parameters specified in the
properties map at construction
time. |
BursaWolfParameters |
getBursaWolfParameters(GeodeticDatum target)
Returns Bursa Wolf parameters for a datum shift toward the specified target, or
null
if none. |
Ellipsoid |
getEllipsoid()
Returns the ellipsoid.
|
PrimeMeridian |
getPrimeMeridian()
Returns the prime meridian.
|
int |
hashCode()
Returns a hash value for this geodetic datum.
|
static boolean |
isWGS84(Datum datum)
Returns
true if the specified object is equals (at least on computation purpose) to
the WGS84 datum. |
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope, getValidArea
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static final DefaultGeodeticDatum WGS84
public static final String BURSA_WOLF_KEY
"bursaWolf"
property for datum
shifts.public DefaultGeodeticDatum(GeodeticDatum datum)
public DefaultGeodeticDatum(String name, Ellipsoid ellipsoid, PrimeMeridian primeMeridian)
name
- The datum name.ellipsoid
- The ellipsoid.primeMeridian
- The prime meridian.public DefaultGeodeticDatum(Map<String,?> properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian)
Property name | Value type | Value given to |
---|---|---|
"bursaWolf" |
BursaWolfParameters or an array of those |
getBursaWolfParameters() |
properties
- Set of properties. Should contains at least "name"
.ellipsoid
- The ellipsoid.primeMeridian
- The prime meridian.public Ellipsoid getEllipsoid()
getEllipsoid
in interface GeodeticDatum
public PrimeMeridian getPrimeMeridian()
getPrimeMeridian
in interface GeodeticDatum
public BursaWolfParameters[] getBursaWolfParameters()
properties
map at construction
time.public BursaWolfParameters getBursaWolfParameters(GeodeticDatum target)
null
if none. This method search only for Bursa-Wolf parameters explicitly specified in the properties
map at construction time. This method doesn't try to infer a set of parameters
from indirect informations. For example it doesn't try to inverse the parameters specified in
the target
datum if none were found in this datum. If such an elaborated search is
wanted, use getAffineTransform(org.opengis.referencing.datum.GeodeticDatum, org.opengis.referencing.datum.GeodeticDatum)
instead.public static Matrix getAffineTransform(GeodeticDatum source, GeodeticDatum target)
null
.source
- The source datum.target
- The target datum.source
to target
, or null
if none.BursaWolfParameters.getAffineTransform()
public static boolean isWGS84(Datum datum)
true
if the specified object is equals (at least on computation purpose) to
the WGS84
datum. This method may conservatively returns false
if the
specified datum is uncertain (for example because it come from an other implementation).public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractDatum
object
- The object to compare to this
.compareMetadata
- true
for performing a strict comparaison, or false
for
comparing only properties relevant to transformations.true
if both objects are equal.public int hashCode()
equals
(AbstractIdentifiedObject, false)
.hashCode
in class AbstractIdentifiedObject
protected String formatWKT(Formatter formatter)
formatWKT
in class AbstractDatum
formatter
- The formatter to use.Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.