|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
DefaultVerticalCRS
@Immutable public class DefaultVerticalCRS
A 1D coordinate reference system used for recording heights or depths. Vertical CRSs make use of the direction of gravity to define the concept of height or depth, but the relationship with gravity may not be straightforward.
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
|
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static DefaultVerticalCRS |
ELLIPSOIDAL_HEIGHT
Default vertical coordinate reference system using ellipsoidal datum. |
static DefaultVerticalCRS |
GEOIDAL_HEIGHT
Default vertical coordinate reference system using geoidal datum. |
| 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 ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
VerticalCS |
getCoordinateSystem()
Returns the coordinate system. |
VerticalDatum |
getDatum()
Returns the datum. |
static DefaultVerticalCRS |
wrap(VerticalCRS object)
Returns a Geotk CRS implementation with the same values than the given arbitrary implementation. |
| Methods inherited from class AbstractSingleCRS |
|---|
computeHashCode, equals, getAxis, getDimension |
| Methods inherited from class AbstractCRS |
|---|
distance |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, 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 ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultVerticalCRS ELLIPSOIDAL_HEIGHT
DefaultVerticalDatum.ELLIPSOIDAL,
DefaultVerticalCS.ELLIPSOIDAL_HEIGHTpublic static final DefaultVerticalCRS GEOIDAL_HEIGHT
DefaultVerticalDatum.GEOIDAL,
DefaultVerticalCS.GRAVITY_RELATED_HEIGHT| Constructor Detail |
|---|
public DefaultVerticalCRS(VerticalCRS crs)
crs - The coordinate reference system to copy.
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.| Method Detail |
|---|
public static DefaultVerticalCRS wrap(VerticalCRS 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 VerticalCS getCoordinateSystem()
getCoordinateSystem in interface CoordinateReferenceSystemgetCoordinateSystem in interface SingleCRSgetCoordinateSystem in interface VerticalCRSgetCoordinateSystem in class AbstractCRSpublic VerticalDatum getDatum()
getDatum in interface SingleCRSgetDatum in interface VerticalCRSgetDatum in class AbstractSingleCRSpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class AbstractCRSformatter - The formatter to use.
"VERT_CS".FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||