public class DefaultVerticalDatum extends AbstractDatum implements VerticalDatum
Modifier and Type | Field and Description |
---|---|
static DefaultVerticalDatum |
ELLIPSOIDAL
Default vertical datum for ellipsoidal heights.
|
static DefaultVerticalDatum |
GEOIDAL
Default vertical datum for geoidal heights.
|
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 |
---|
DefaultVerticalDatum(Map<String,?> properties,
VerticalDatumType type)
Constructs a vertical datum from a set of properties.
|
DefaultVerticalDatum(String name,
VerticalDatumType type)
Constructs a vertical datum from a name.
|
DefaultVerticalDatum(VerticalDatum datum)
Constructs a new datum with the same values than the specified one.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this vertical datum with the specified object for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
VerticalDatumType |
getVerticalDatumType()
The type of this vertical datum.
|
static VerticalDatumType |
getVerticalDatumTypeFromLegacyCode(int code)
Returns the vertical datum type from a legacy code.
|
int |
hashCode()
Returns a hash value for this vertical 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 DefaultVerticalDatum GEOIDAL
public static final DefaultVerticalDatum ELLIPSOIDAL
public DefaultVerticalDatum(String name, VerticalDatumType type)
name
- The datum name.type
- The type of this vertical datum.public DefaultVerticalDatum(VerticalDatum datum)
datum
- The datum to copy.public DefaultVerticalDatum(Map<String,?> properties, VerticalDatumType type)
properties
- Set of properties. Should contains at least "name"
.type
- The type of this vertical datum.public VerticalDatumType getVerticalDatumType()
getVerticalDatumType
in interface VerticalDatum
public static VerticalDatumType getVerticalDatumTypeFromLegacyCode(int code)
code
- The legacy vertical datum code.null
if the code is unrecognized.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.