public class DefaultVerticalDatum extends AbstractDatum implements VerticalDatum
VerticalDatum
from one of the static convenience shortcuts listed in
CommonCRS.Vertical.datum()
.VerticalDatum
from an identifier in a database by invoking
DatumAuthorityFactory.createVerticalDatum(String)
.VerticalDatum
by invoking the DatumFactory.createVerticalDatum(…)
method
(implemented for example by GeodeticObjectFactory
).DefaultVerticalDatum
by invoking the
constructor.VerticalDatum datum = CommonCRS.Vertical.GEOID.datum();
CommonCRS.Vertical.datum()
,
DefaultVerticalCS
,
DefaultVerticalCRS
,
GeodeticAuthorityFactory.createVerticalDatum(String)
,
Serialized FormDefined in the sis-referencing
module
DEPRECATED_KEY, LOCALE_KEY
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
|
DefaultVerticalDatum(Map<String,?> properties,
VerticalDatumType type)
Creates a vertical datum from the given properties.
|
protected |
DefaultVerticalDatum(VerticalDatum datum)
Creates a new datum with the same values than the specified one.
|
Modifier and Type | Method and Description |
---|---|
static DefaultVerticalDatum |
castOrCopy(VerticalDatum object)
Returns a SIS datum implementation with the same values than the given arbitrary implementation.
|
protected long |
computeHashCode()
Invoked by
hashCode() for computing the hash code when first needed. |
boolean |
equals(Object object,
ComparisonMode mode)
Compare this vertical datum with the specified object for equality.
|
protected String |
formatTo(Formatter formatter)
Formats this datum as a Well Known Text
VerticalDatum[…] element. |
Class<? extends VerticalDatum> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
VerticalDatumType |
getVerticalDatumType()
Returns the type of this vertical datum.
|
castOrCopy, getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope, isHeuristicMatchForName
castOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated
print, toString, toString, toWKT
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultVerticalDatum(Map<String,?> properties, VerticalDatumType type)
Property name | Value type | Returned by |
---|---|---|
"name" | ReferenceIdentifier or String |
AbstractIdentifiedObject.getName() |
"alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
"identifiers" | ReferenceIdentifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
"remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
"anchorPoint" | InternationalString or String |
AbstractDatum.getAnchorPoint() |
"realizationEpoch" | Date |
AbstractDatum.getRealizationEpoch() |
"domainOfValidity" | Extent |
AbstractDatum.getDomainOfValidity() |
"scope" | InternationalString or String |
AbstractDatum.getScope() |
properties
- the properties to be given to the identified object.type
- the type of this vertical datum.GeodeticObjectFactory.createVerticalDatum(Map, VerticalDatumType)
protected DefaultVerticalDatum(VerticalDatum datum)
This constructor performs a shallow copy, i.e. the properties are not cloned.
datum
- the datum to copy.castOrCopy(VerticalDatum)
public static DefaultVerticalDatum castOrCopy(VerticalDatum object)
null
, then this method returns null
.
Otherwise if the given object is already a SIS implementation, then the given object is returned unchanged.
Otherwise a new SIS implementation is created and initialized to the attribute values of the given object.object
- the object to get as a SIS implementation, or null
if none.null
if the argument was null.public Class<? extends VerticalDatum> getInterface()
VerticalDatum.class
.
VerticalDatum
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.getInterface
in class AbstractDatum
VerticalDatum.class
or a user-defined sub-interface.public VerticalDatumType getVerticalDatumType()
getVerticalDatumType
in interface VerticalDatum
public boolean equals(Object object, ComparisonMode mode)
equals
in interface LenientComparable
equals
in class AbstractDatum
object
- the object to compare to this
.mode
- STRICT
for performing a strict comparison, or
IGNORE_METADATA
for comparing only
properties relevant to coordinate transformations.true
if both objects are equal.AbstractIdentifiedObject.computeHashCode()
,
Utilities.deepEquals(Object, Object, ComparisonMode)
protected long computeHashCode()
hashCode()
for computing the hash code when first needed.
See AbstractIdentifiedObject.computeHashCode()
for more information.computeHashCode
in class AbstractDatum
protected String formatTo(Formatter formatter)
VerticalDatum[…]
element.
Datum
subtypes in WKT 1.
Datum types became provided only for vertical datum in the ISO 19111:2003 specification, then removed
completely in ISO 19111:2007.formatTo
in class AbstractDatum
formatter
- the formatter where to format the inner content of this WKT element."VerticalDatum"
(WKT 2) or "Vert_Datum"
(WKT 1).Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.