public class DefaultTemporalCRS extends AbstractCRS implements TemporalCRS
toDate(double) for converting a temporal position to a Date.toValue(Date) for converting a Date to a temporal position.Used with datum type:
Temporal.
Used with coordinate system type:
Time.
DefaultTemporalDatum,
DefaultTimeCS,
GeodeticAuthorityFactory.createTemporalCRS(String),
Serialized FormDefined in the sis-referencing module
DEPRECATED_KEY, LOCALE_KEYDOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
|
DefaultTemporalCRS(Map<String,?> properties,
TemporalDatum datum,
TimeCS cs)
Creates a coordinate reference system from the given properties, datum and coordinate system.
|
protected |
DefaultTemporalCRS(TemporalCRS crs)
Constructs a new coordinate reference system with the same values than the specified one.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultTemporalCRS |
castOrCopy(TemporalCRS object)
Returns a SIS coordinate reference system implementation with the same values than the given
arbitrary implementation.
|
DefaultTemporalCRS |
forConvention(AxesConvention convention)
Returns a coordinate reference system equivalent to this one but with axes rearranged according the given
convention.
|
protected String |
formatTo(Formatter formatter)
Formats this CRS as a Well Known Text
TimeCRS[…] element. |
TimeCS |
getCoordinateSystem()
Returns the coordinate system.
|
TemporalDatum |
getDatum()
Returns the datum.
|
Class<? extends TemporalCRS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
Date |
toDate(double value)
Convert the given value into a
Date object. |
double |
toValue(Date time)
Convert the given date into a value in this axis unit.
|
castOrCopy, computeHashCode, equalsgetDomainOfValidity, getScopecastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDomainOfValidity, getScopegetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultTemporalCRS(Map<String,?> properties, TemporalDatum datum, TimeCS cs)
| Property name | Value type | Returned by |
|---|---|---|
| "name" | ReferenceIdentifier or String |
AbstractIdentifiedObject.getName() |
| "alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
| "identifiers" | ReferenceIdentifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
| "remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
| "domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
| "scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
properties - the properties to be given to the coordinate reference system.datum - the datum.cs - the coordinate system.GeodeticObjectFactory.createTemporalCRS(Map, TemporalDatum, TimeCS)protected DefaultTemporalCRS(TemporalCRS crs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
crs - the coordinate reference system to copy.castOrCopy(TemporalCRS)public static DefaultTemporalCRS castOrCopy(TemporalCRS object)
null, then this method returns null.
Otherwise if the given object is already a SIS implementation, then the given object is returned unchanged.
Otherwise a new SIS implementation is created and initialized to the attribute values of the given object.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public Class<? extends TemporalCRS> getInterface()
TemporalCRS.class.
TemporalCRS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.getInterface in class AbstractCRSTemporalCRS.class or a user-defined sub-interface.public TemporalDatum getDatum()
getDatum in interface SingleCRSgetDatum in interface TemporalCRSpublic TimeCS getCoordinateSystem()
getCoordinateSystem in interface CoordinateReferenceSystemgetCoordinateSystem in interface SingleCRSgetCoordinateSystem in interface TemporalCRSgetCoordinateSystem in class AbstractCRSpublic DefaultTemporalCRS forConvention(AxesConvention convention)
this.forConvention in class AbstractCRSconvention - the axes convention for which a coordinate reference system is desired.this).AbstractCS.forConvention(AxesConvention)public Date toDate(double value)
Date object.
If the given value is NaN or infinite, then this method returns null.
This method is the converse of toValue(Date).
value - a value in this axis unit.null if the given value is NaN or infinite.public double toValue(Date time)
null, then this method returns NaN.
This method is the converse of toDate(double).
protected String formatTo(Formatter formatter)
TimeCRS[…] element.
TimeCRS is defined in the WKT 2 specification only.formatTo in class AbstractCRSformatter - the formatter where to format the inner content of this WKT element."TimeCRS".Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.