Object
SimpleIdentifiedObject
SimpleCRS
Temporal
- All Implemented Interfaces:
Identifier
,CoordinateReferenceSystem
,SingleCRS
,TemporalCRS
,CoordinateSystem
,TimeCS
,Datum
,TemporalDatum
,IdentifiedObject
,ReferenceIdentifier
,ReferenceSystem
- Enclosing class:
SimpleCRS
public static class SimpleCRS.Temporal
extends SimpleCRS
implements TemporalCRS, TimeCS, TemporalDatum
A
TemporalCRS
specialization of SimpleCRS
with its own datum.
In order to keep the model simpler, this temporal CRS is also its own datum. Merging the CRS
and datum interfaces is usually not a recommended practice since many temporal 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
ConstructorDescriptionTemporal
(Citation authority, String name, Date origin, 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 shall be temporal.Returns the date and time origin of this temporal 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
getDomainOfValidity, 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
Methods inherited from interface TemporalDatum
getAnchorPoint, getRealizationEpoch
-
Constructor Details
-
Temporal
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.origin
- the value to be returned bygetOrigin()
.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 interfaceTemporalCRS
- Overrides:
getCoordinateSystem
in classSimpleCRS
- Returns:
- the coordinate system.
-
getDatum
Returns the datum, which shall be temporal.- Specified by:
getDatum
in interfaceSingleCRS
- Specified by:
getDatum
in interfaceTemporalCRS
- Returns:
- the datum.
-
getOrigin
Returns the date and time origin of this temporal datum. The units can be obtained bygetAxis(0).getUnit()
.- Specified by:
getOrigin
in interfaceTemporalDatum
- Returns:
- the date and time origin of this temporal datum.
-