Package org.opengis.example.referencing
Class SimpleCRS.Vertical
- Object
-
- SimpleIdentifiedObject
-
- SimpleCRS
-
- Vertical
-
- All Implemented Interfaces:
Serializable,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
AVerticalCRSspecialization ofSimpleCRSwith 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-examplesmodule 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
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description Vertical(Citation authority, String name, VerticalDatumType type, CoordinateSystemAxis axis)Creates a new CRS for the given name, datum and axes.
-
Method Summary
Modifier and Type Method Description VerticalCSgetCoordinateSystem()Returns the coordinate system, which is represented directly bythisimplementation class since it does not distinguish CS and CRS.VerticalDatumgetDatum()VerticalDatumTypegetVerticalDatumType()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 Detail
-
Vertical
public Vertical(Citation authority, String name, VerticalDatumType type, CoordinateSystemAxis axis)
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 Detail
-
getCoordinateSystem
public VerticalCS getCoordinateSystem()
Returns the coordinate system, which is represented directly bythisimplementation class since it does not distinguish CS and CRS.- Specified by:
getCoordinateSystemin interfaceCoordinateReferenceSystem- Specified by:
getCoordinateSystemin interfaceSingleCRS- Specified by:
getCoordinateSystemin interfaceVerticalCRS- Overrides:
getCoordinateSystemin classSimpleCRS- Returns:
- the coordinate system.
-
getDatum
public VerticalDatum getDatum()
- Specified by:
getDatumin interfaceSingleCRS- Specified by:
getDatumin interfaceVerticalCRS
-
getVerticalDatumType
public VerticalDatumType getVerticalDatumType()
Returns the type of this vertical datum.- Specified by:
getVerticalDatumTypein interfaceVerticalDatum- Returns:
- the type of this vertical datum.
-
-