public class DefaultVerticalCRS extends AbstractSingleCRS implements VerticalCRS
By implication, ellipsoidal heights (h) cannot be captured in a vertical coordinate
reference system. Ellipsoidal heights cannot exist independently, but only as inseparable part of
a 3D coordinate tuple defined in a geographic 3D coordinate reference system. However GeoAPI does
not enforce this rule. This class defines a ELLIPSOIDAL_HEIGHT
constant in violation
with ISO 19111; this is considered okay if this constant is used merely as a step toward the
construction of a 3D CRS (for example in a transient state during WKT parsing), or for passing
arguments in methods enforcing type-safety.
Used with CS type(s) |
---|
Vertical
|
Modifier and Type | Field and Description |
---|---|
static DefaultVerticalCRS |
ELLIPSOIDAL_HEIGHT
Default vertical coordinate reference system using ellipsoidal datum.
|
static DefaultVerticalCRS |
GEOIDAL_HEIGHT
Default vertical coordinate reference system using geoidal datum.
|
datum
coordinateSystem
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
DefaultVerticalCRS(Map<String,?> properties,
VerticalDatum datum,
VerticalCS cs)
Constructs a vertical CRS from a set of properties.
|
DefaultVerticalCRS(String name,
VerticalDatum datum,
VerticalCS cs)
Constructs a vertical CRS from a name.
|
DefaultVerticalCRS(VerticalCRS crs)
Constructs a new vertical CRS with the same values than the specified one.
|
DefaultVerticalCRS(VerticalDatum datum,
VerticalCS cs)
Constructs a vertical CRS with the same properties than the given datum.
|
Modifier and Type | Method and Description |
---|---|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
VerticalCS |
getCoordinateSystem()
Returns the coordinate system.
|
VerticalDatum |
getDatum()
Returns the datum.
|
int |
hashCode()
Returns a hash value for this geographic CRS.
|
equals, getAxis, getDimension
distance
getDomainOfValidity, 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
getDomainOfValidity, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static final DefaultVerticalCRS ELLIPSOIDAL_HEIGHT
public static final DefaultVerticalCRS GEOIDAL_HEIGHT
DefaultVerticalDatum.GEOIDAL
,
DefaultVerticalCS.GRAVITY_RELATED_HEIGHT
public DefaultVerticalCRS(VerticalCRS crs)
public DefaultVerticalCRS(VerticalDatum datum, VerticalCS cs)
datum
- The datum.cs
- The coordinate system.public DefaultVerticalCRS(String name, VerticalDatum datum, VerticalCS cs)
name
- The name.datum
- The datum.cs
- The coordinate system.public DefaultVerticalCRS(Map<String,?> properties, VerticalDatum datum, VerticalCS cs)
properties
- Set of properties. Should contains at least "name"
.datum
- The datum.cs
- The coordinate system.public VerticalCS getCoordinateSystem()
getCoordinateSystem
in interface CoordinateReferenceSystem
getCoordinateSystem
in interface SingleCRS
getCoordinateSystem
in interface VerticalCRS
getCoordinateSystem
in class AbstractCRS
public VerticalDatum getDatum()
getDatum
in interface SingleCRS
getDatum
in interface VerticalCRS
getDatum
in class AbstractSingleCRS
public int hashCode()
hashCode
in class AbstractSingleCRS
protected String formatWKT(Formatter formatter)
formatWKT
in class AbstractCRS
formatter
- The formatter to use."VERT_CS"
.Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.