|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractDatum
DefaultVerticalDatum
@Immutable public class DefaultVerticalDatum
A textual description and/or a set of parameters identifying a particular reference level surface used as a zero-height surface. The description includes its position with respect to the Earth for any of the height types recognized by this standard. There are several types of vertical datums, and each may place constraints on the coordinate system axis with which it is combined to create a vertical CRS.
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static DefaultVerticalDatum |
BAROMETRIC
Default vertical datum for barometric heights. |
static DefaultVerticalDatum |
ELLIPSOIDAL
Default vertical datum for ellipsoidal heights. |
static DefaultVerticalDatum |
GEOIDAL
Default vertical datum for geoidal heights. |
static DefaultVerticalDatum |
OTHER_SURFACE
Default vertical datum for other surface. |
| Fields inherited from class AbstractIdentifiedObject |
|---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface Datum |
|---|
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected int |
computeHashCode()
Computes a hash value for this identified object. |
boolean |
equals(Object object,
ComparisonMode mode)
Compare this vertical datum with the specified object for equality. |
String |
formatWKT(Formatter formatter)
Formats 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. |
static DefaultVerticalDatum |
wrap(VerticalDatum object)
Returns a Geotk datum implementation with the same values than the given arbitrary implementation. |
| Methods inherited from class AbstractDatum |
|---|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Datum |
|---|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultVerticalDatum BAROMETRIC
public static final DefaultVerticalDatum GEOIDAL
public static final DefaultVerticalDatum ELLIPSOIDAL
public static final DefaultVerticalDatum OTHER_SURFACE
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public static DefaultVerticalDatum wrap(VerticalDatum object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object.
object - The object to wrap in a Geotk implementation, or null if none.
null if the argument was null.public VerticalDatumType getVerticalDatumType()
getVerticalDatumType in interface VerticalDatumpublic static VerticalDatumType getVerticalDatumTypeFromLegacyCode(int code)
code - The legacy vertical datum code.
null if the code is unrecognized.
public boolean equals(Object object,
ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractDatumobject - The object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only properties
relevant to transformations.
true if both objects are equal.protected int computeHashCode()
AbstractIdentifiedObject.hashCode() when first needed.
Implementation specific feature
In the Geotk implementation, the name, identifiers and remarks are not used for hash code computation.
Consequently two identified objects will return the same hash value if they are equal in the
sense of equals(…,
ComparisonMode.IGNORE_METADATA). This feature allows users to
implement metadata-insensitive HashMap.
computeHashCode in class AbstractIdentifiedObjectpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class AbstractDatumformatter - The formatter to use.
FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||