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 createVerticalDatum(…)
method defined in the DatumFactory
interface.DefaultVerticalDatum
by invoking the
constructor.VerticalDatum datum = CommonCRS.Vertical.GEOID.datum();
CommonCRS.Vertical.datum()
,
DefaultVerticalCS
,
DefaultVerticalCRS
,
Serialized FormDefined in the sis-referencing
module
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, getIdentifiers, getName, getRemarks, hashCode, isDeprecated
print, toString, toString, toWKT
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultVerticalDatum(Map<String,?> properties, VerticalDatumType type)
properties
- The properties to be given to the identified object.type
- The type of this vertical datum.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 AbstractIdentifiedObject
formatter
- The formatter where to format the inner content of this WKT element."VerticalDatum"
(WKT 2) or "Vert_Datum"
(WKT 1).FormattableObject.toWKT()
,
FormattableObject.toString()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.