| org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.AbstractSingleCRS org.geotools.referencing.crs.DefaultTemporalCRS
DefaultTemporalCRS | public class DefaultTemporalCRS extends AbstractSingleCRS implements TemporalCRS(Code) | | A 1D coordinate reference system used for the recording of time.
Used with CS type(s) |
TimeCS Time |
since: 2.1 version: $Id: DefaultTemporalCRS.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux |
Field Summary | |
public static Unit | MILLISECOND Unit for milliseconds. |
Constructor Summary | |
public | DefaultTemporalCRS(TemporalCRS crs) Constructs a new temporal CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultTemporalCRS(String name, TemporalDatum datum, TimeCS cs) Constructs a temporal CRS from a name. | public | DefaultTemporalCRS(Map properties, TemporalDatum datum, TimeCS cs) Constructs a temporal CRS from a set of properties. |
Method Summary | |
public int | hashCode() Returns a hash value for this geographic CRS.
The hash code value. | public Date | toDate(double value) Convert the given value into a
Date object.
This method is the converse of
DefaultTemporalCRS.toValue .
Parameters: value - A value in this axis unit. | public double | toValue(Date time) Convert the given
into a value in this axis unit.
This method is the converse of
DefaultTemporalCRS.toDate .
Parameters: time - The value as a . | public static DefaultTemporalCRS | wrap(TemporalCRS crs) Wraps an arbitrary temporal CRS into a Geotools implementation. |
MILLISECOND | public static Unit MILLISECOND(Code) | | Unit for milliseconds. Usefull for conversion from and to
Date objects.
|
DefaultTemporalCRS | public DefaultTemporalCRS(TemporalCRS crs)(Code) | | Constructs a new temporal CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 See Also: DefaultTemporalCRS.wrap |
DefaultTemporalCRS | public DefaultTemporalCRS(String name, TemporalDatum datum, TimeCS cs)(Code) | | Constructs a temporal CRS from a name.
Parameters: name - The name. Parameters: datum - The datum. Parameters: cs - The coordinate system. |
DefaultTemporalCRS | public DefaultTemporalCRS(Map properties, TemporalDatum datum, TimeCS cs)(Code) | | Constructs a temporal CRS from a set of properties. The properties are given unchanged to
the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: cs - The coordinate system. Parameters: datum - The datum. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this geographic CRS.
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
toDate | public Date toDate(double value)(Code) | | Convert the given value into a
Date object.
This method is the converse of
DefaultTemporalCRS.toValue .
Parameters: value - A value in this axis unit. The value as a . |
toValue | public double toValue(Date time)(Code) | | Convert the given
into a value in this axis unit.
This method is the converse of
DefaultTemporalCRS.toDate .
Parameters: time - The value as a . value A value in this axis unit. |
Fields inherited from org.geotools.referencing.crs.AbstractSingleCRS | final protected Datum datum(Code)(Java Doc)
|
Fields inherited from org.geotools.referencing.crs.AbstractCRS | final protected CoordinateSystem coordinateSystem(Code)(Java Doc)
|
|
|