org.geotools.cs
Class TemporalCoordinateSystem

java.lang.Object
  extended byorg.geotools.cs.Info
      extended byorg.geotools.cs.CoordinateSystem
          extended byorg.geotools.cs.TemporalCoordinateSystem
All Implemented Interfaces:
org.opengis.referencing.crs.CoordinateReferenceSystem, Dimensioned, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceSystem, java.io.Serializable

Deprecated. Replaced by DefaultTemporalCRS.

public class TemporalCoordinateSystem
extends CoordinateSystem

A one-dimensional coordinate system suitable for time measurements.

Version:
$Id: TemporalCoordinateSystem.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.opengis.referencing.ReferenceSystem
SCOPE_KEY, VALID_AREA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
TemporalCoordinateSystem(java.lang.CharSequence name, java.util.Date epoch)
          Deprecated. Creates a temporal coordinate system.
TemporalCoordinateSystem(java.lang.CharSequence name, TemporalDatum datum, Unit unit, java.util.Date epoch, AxisInfo axis)
          Deprecated. Creates a temporal coordinate system from a datum and time units.
 
Method Summary
 boolean equals(Info object, boolean compareNames)
          Deprecated. Compare this coordinate system with the specified object for equality.
 AxisInfo getAxis(int dimension)
          Deprecated. Gets axis details for temporal dimension within coordinate system.
 int getDimension()
          Deprecated. Returns the dimension of this coordinate system, which is 1.
 java.util.Date getEpoch()
          Deprecated. Returns the epoch.
 TemporalDatum getTemporalDatum()
          Deprecated. Gets the temporal datum, which indicates the measurement method.
 Unit getUnits(int dimension)
          Deprecated. Gets units for dimension within coordinate system.
 int hashCode()
          Deprecated. Returns a hash value for this coordinate system.
 java.util.Date toDate(double value)
          Deprecated. Convert the given value into a Date object.
 double toValue(java.util.Date time)
          Deprecated. Convert the given date into a value in this axis unit.
 
Methods inherited from class org.geotools.cs.CoordinateSystem
fromGeoAPI, getCoordinateSystem, getDatum, getDefaultEnvelope, getScope, getValidArea
 
Methods inherited from class org.geotools.cs.Info
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Constructor Detail

TemporalCoordinateSystem

public TemporalCoordinateSystem(java.lang.CharSequence name,
                                java.util.Date epoch)
Deprecated. 
Creates a temporal coordinate system. Datum is UTC, units are days and values are increasing toward future.

Parameters:
name - Name to give new object.
epoch - The epoch (i.e. date of origin).

TemporalCoordinateSystem

public TemporalCoordinateSystem(java.lang.CharSequence name,
                                TemporalDatum datum,
                                Unit unit,
                                java.util.Date epoch,
                                AxisInfo axis)
Deprecated. 
Creates a temporal coordinate system from a datum and time units.

Parameters:
name - Name to give new object.
datum - Datum to use for new coordinate system.
unit - Units to use for new coordinate system.
epoch - The epoch (i.e. date of origin).
axis - Axis to use for new coordinate system.
Method Detail

getDimension

public final int getDimension()
Deprecated. 
Returns the dimension of this coordinate system, which is 1.

Specified by:
getDimension in interface Dimensioned
Specified by:
getDimension in class CoordinateSystem
See Also:
CS_CoordinateSystem.getDimension()

getTemporalDatum

public TemporalDatum getTemporalDatum()
Deprecated. 
Gets the temporal datum, which indicates the measurement method.


getEpoch

public java.util.Date getEpoch()
Deprecated. 
Returns the epoch. The epoch is the origin of the time axis, i.e. the date for value zero.


getAxis

public AxisInfo getAxis(int dimension)
Deprecated. 
Gets axis details for temporal dimension within coordinate system. A temporal coordinate system has only one axis, always at index 0.

Specified by:
getAxis in class CoordinateSystem
Parameters:
dimension - Zero based index of axis.
See Also:
CS_CoordinateSystem.getAxis(int)

getUnits

public Unit getUnits(int dimension)
Deprecated. 
Gets units for dimension within coordinate system. A temporal coordinate system has only one unit, always at index 0.

Specified by:
getUnits in class CoordinateSystem
Parameters:
dimension - Must be 0.
See Also:
CS_CoordinateSystem.getUnits(int)

toDate

public java.util.Date toDate(double value)
Deprecated. 
Convert the given value into a Date object. This method is the converse of toValue(java.util.Date).

Parameters:
value - A value in this axis unit.
Returns:
The value as a date.

toValue

public double toValue(java.util.Date time)
Deprecated. 
Convert the given date into a value in this axis unit. This method is the converse of toDate(double).

Parameters:
time - The value as a date.
Returns:
value A value in this axis unit.

equals

public boolean equals(Info object,
                      boolean compareNames)
Deprecated. 
Compare this coordinate system with the specified object for equality.

Overrides:
equals in class Info
Parameters:
object - The object to compare to this.
compareNames - true to comparare the name, alias, authority code, etc. as well, or false to compare only properties relevant to transformations.
Returns:
true if both objects are equal.

hashCode

public int hashCode()
Deprecated. 
Returns a hash value for this coordinate system. Name, alias, authority code and the like are not taken in account. In other words, two coordinate systems will return the same hash value if they are equal in the sense of equals(Info, false).

Overrides:
hashCode in class Info
Returns:
The hash code value. This value doesn't need to be the same in past or future versions of this class.


Copyright © GeoTools. All Rights Reserved.