Object
SimpleIdentifiedObject
SimpleCRS
Vertical
- All Implemented Interfaces:
Identifier
,CoordinateReferenceSystem
,SingleCRS
,VerticalCRS
,CoordinateSystem
,VerticalCS
,Datum
,VerticalDatum
,IdentifiedObject
,ReferenceIdentifier
,ReferenceSystem
- Enclosing class:
SimpleCRS
public static class SimpleCRS.Vertical
extends SimpleCRS
implements VerticalCRS, VerticalCS, VerticalDatum
A
VerticalCRS
specialization of SimpleCRS
with its own datum.
In order to keep the model simpler, this vertical CRS is also its own datum. Merging the CRS
and datum interfaces is usually not a recommended practice since many vertical CRS can have
the same datum. However, this particular class takes this approach because the geoapi-examples
module is only a demonstration of how GeoAPI can be implemented in a few simple cases.
More complex applications are encouraged to store the datum in a separated object.
- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleCRS
SimpleCRS.Geographic, SimpleCRS.Temporal, SimpleCRS.Vertical
-
Field Summary
Fields inherited from class SimpleIdentifiedObject
authority, code
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
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY, CODESPACE_KEY, DESCRIPTION_KEY, VERSION_KEY
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
Constructor Summary
ConstructorDescriptionVertical
(Citation authority, String name, VerticalDatumType type, CoordinateSystemAxis axis) Creates a new CRS for the given name, datum and axes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the coordinate system, which is represented directly bythis
implementation class since it does not distinguish CS and CRS.getDatum()
Returns the datum, which must be vertical.Returns the type of this vertical datum.Methods inherited from class SimpleCRS
equals, getAxis, getDimension
Methods inherited from class SimpleIdentifiedObject
getAuthority, getCode, getCodeSpace, getDomainOfValidity, getName, getScope, hashCode, toString, toWKT
Methods inherited from interface CoordinateSystem
getAxis, getDimension
Methods inherited from interface Datum
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
Methods inherited from interface Identifier
getDescription, getVersion
Methods inherited from interface ReferenceSystem
getDomainOfValidity, getScope
-
Constructor Details
-
Vertical
Creates a new CRS for the given name, datum and axes.- Parameters:
authority
- organization responsible for definition of the name, ornull
.name
- the name of the new CRS.type
- the value to be returned bygetVerticalDatumType()
.axis
- the axis to be returned bySimpleCRS.getAxis(int)
.
-
-
Method Details
-
getCoordinateSystem
Returns the coordinate system, which is represented directly bythis
implementation class since it does not distinguish CS and CRS.- Specified by:
getCoordinateSystem
in interfaceCoordinateReferenceSystem
- Specified by:
getCoordinateSystem
in interfaceSingleCRS
- Specified by:
getCoordinateSystem
in interfaceVerticalCRS
- Overrides:
getCoordinateSystem
in classSimpleCRS
- Returns:
- the coordinate system.
-
getDatum
Returns the datum, which must be vertical.- Specified by:
getDatum
in interfaceSingleCRS
- Specified by:
getDatum
in interfaceVerticalCRS
- Returns:
- the datum.
-
getVerticalDatumType
Returns the type of this vertical datum.- Specified by:
getVerticalDatumType
in interfaceVerticalDatum
- Returns:
- the type of this vertical datum.
- See Also:
-