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 booleanequals(Object object)InternationalStringgetInterval()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.DategetOrigin()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.inthashCode()voidsetInterval(InternationalString interval)voidsetOrigin(Date origin)StringtoString()DatetransformCoord(TemporalCoordinate c_value)Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.TemporalCoordinatetransformDateTime(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:TemporalCoordinateSystemPosition 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:
getOriginin interfaceTemporalCoordinateSystem
-
getInterval
public InternationalString getInterval()
Description copied from interface:TemporalCoordinateSystemIdentifies 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:
getIntervalin 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:
transformCoordin interfaceTemporalCoordinateSystem
-
transformDateTime
public TemporalCoordinate transformDateTime(Date dateTime)
Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar. Default of unit is millisecond.- Specified by:
transformDateTimein interfaceTemporalCoordinateSystem
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultTemporalReferenceSystem
-
toString
public String toString()
- Overrides:
toStringin classDefaultTemporalReferenceSystem
-
-