Package org.geotools.temporal.reference
Class DefaultTemporalCoordinateSystem
- Object
-
- DefaultTemporalReferenceSystem
-
- DefaultTemporalCoordinateSystem
-
- All Implemented Interfaces:
IdentifiedObject
,ReferenceSystem
,TemporalCoordinateSystem
,TemporalReferenceSystem
public class DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem
- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Field Summary
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
InternationalString
getInterval()
Identifies the base interval for this temporal coordinate system as a unit of measure specified by ISO 31-1, or a multiple of one of those units, as specified by ISO 1000.Date
getOrigin()
Position of the origin of the scale on which the temporal coordinate system is based expressed as a date in the Gregorian calendar and time of day in UTC.int
hashCode()
void
setInterval(InternationalString interval)
void
setOrigin(Date origin)
String
toString()
Date
transformCoord(TemporalCoordinate c_value)
Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.TemporalCoordinate
transformDateTime(Date dateTime)
Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar.-
Methods inherited from class DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, setDomainOfValidity, setName, setScope, setValidArea, toWKT
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks, toWKT
-
Methods inherited from interface ReferenceSystem
getScope
-
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
-
-
-
-
Constructor Detail
-
DefaultTemporalCoordinateSystem
public DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval)
-
-
Method Detail
-
setOrigin
public void setOrigin(Date origin)
-
setInterval
public void setInterval(InternationalString interval)
-
getOrigin
public Date getOrigin()
Description copied from interface:TemporalCoordinateSystem
Position of the origin of the scale on which the temporal coordinate system is based expressed as a date in the Gregorian calendar and time of day in UTC.- Specified by:
getOrigin
in interfaceTemporalCoordinateSystem
-
getInterval
public InternationalString getInterval()
Description copied from interface:TemporalCoordinateSystem
Identifies the base interval for this temporal coordinate system as a unit of measure specified by ISO 31-1, or a multiple of one of those units, as specified by ISO 1000.- Specified by:
getInterval
in interfaceTemporalCoordinateSystem
-
transformCoord
public Date transformCoord(TemporalCoordinate c_value)
Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.- Specified by:
transformCoord
in interfaceTemporalCoordinateSystem
-
transformDateTime
public TemporalCoordinate transformDateTime(Date dateTime)
Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar. Default of unit is millisecond.- Specified by:
transformDateTime
in interfaceTemporalCoordinateSystem
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultTemporalReferenceSystem
-
toString
public String toString()
- Overrides:
toString
in classDefaultTemporalReferenceSystem
-
-