|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
DefaultTemporalCRS
@Immutable public class DefaultTemporalCRS
A 1D coordinate reference system used for the recording of time.
| Used with CS type(s) |
|---|
Time
|
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static DefaultTemporalCRS |
DUBLIN_JULIAN
Time measured in days since December 31, 1899 at 12:00 UTC. |
static DefaultTemporalCRS |
JAVA
Time measured in milliseconds since January 1st, 1970 at 00:00 UTC. |
static DefaultTemporalCRS |
JULIAN
Time measured in days since January 1st, 4713 BC at 12:00 UTC. |
static DefaultTemporalCRS |
MODIFIED_JULIAN
Time measured in days since November 17, 1858 at 00:00 UTC. |
static DefaultTemporalCRS |
TRUNCATED_JULIAN
Time measured in days since May 24, 1968 at 00:00 UTC. |
static DefaultTemporalCRS |
UNIX
Time measured in seconds since January 1st, 1970 at 00:00 UTC. |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultTemporalCRS(Map<String,?> properties,
TemporalDatum datum,
TimeCS cs)
Constructs a temporal CRS from a set of properties. |
|
DefaultTemporalCRS(String name,
TemporalDatum datum,
TimeCS cs)
Constructs a temporal CRS from a name. |
|
DefaultTemporalCRS(TemporalCRS crs)
Constructs a new temporal CRS with the same values than the specified one. |
|
DefaultTemporalCRS(TemporalDatum datum,
TimeCS cs)
Constructs a temporal CRS with the same properties than the given datum. |
|
| Method Summary | |
|---|---|
static DefaultTemporalCRS |
castOrCopy(TemporalCRS object)
Wraps an arbitrary temporal CRS into a Geotk implementation. |
TimeCS |
getCoordinateSystem()
Returns the coordinate system. |
TemporalDatum |
getDatum()
Returns the datum. |
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. |
static DefaultTemporalCRS |
wrap(TemporalCRS object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractSingleCRS |
|---|
computeHashCode, equals, getAxis, getDimension |
| Methods inherited from class AbstractCRS |
|---|
distance, formatWKT |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultTemporalCRS JULIAN
DefaultTemporalDatum.JULIAN,
DefaultTimeCS.DAYSpublic static final DefaultTemporalCRS MODIFIED_JULIAN
MJD = JD − 2400000.5.
DefaultTemporalDatum.MODIFIED_JULIAN,
DefaultTimeCS.DAYSpublic static final DefaultTemporalCRS TRUNCATED_JULIAN
TJD = JD − 2440000.5.
DefaultTemporalDatum.TRUNCATED_JULIAN,
DefaultTimeCS.DAYSpublic static final DefaultTemporalCRS DUBLIN_JULIAN
DJD = JD − 2415020.
DefaultTemporalDatum.DUBLIN_JULIAN,
DefaultTimeCS.DAYSpublic static final DefaultTemporalCRS UNIX
DefaultTemporalDatum.UNIX,
DefaultTimeCS.SECONDSpublic static final DefaultTemporalCRS JAVA
DefaultTemporalDatum.UNIX,
DefaultTimeCS.MILLISECONDS| Constructor Detail |
|---|
public DefaultTemporalCRS(TemporalCRS crs)
crs - The coordinate reference system to copy.castOrCopy(TemporalCRS)
public DefaultTemporalCRS(TemporalDatum datum,
TimeCS cs)
datum - The datum.cs - The coordinate system.
public DefaultTemporalCRS(String name,
TemporalDatum datum,
TimeCS cs)
name - The name.datum - The datum.cs - The coordinate system.
public DefaultTemporalCRS(Map<String,?> properties,
TemporalDatum datum,
TimeCS cs)
properties - Set of properties. Should contains at least "name".cs - The coordinate system.datum - The datum.| Method Detail |
|---|
public static DefaultTemporalCRS castOrCopy(TemporalCRS object)
toDate(double) and toValue(java.util.Date) methods.
If the supplied CRS is already an instance of DefaultTemporalCRS or is null,
then it is returned unchanged.
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.@Deprecated public static DefaultTemporalCRS wrap(TemporalCRS object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public TimeCS getCoordinateSystem()
getCoordinateSystem in interface CoordinateReferenceSystemgetCoordinateSystem in interface SingleCRSgetCoordinateSystem in interface TemporalCRSgetCoordinateSystem in class AbstractCRSpublic TemporalDatum getDatum()
getDatum in interface SingleCRSgetDatum in interface TemporalCRSgetDatum in class AbstractSingleCRSpublic Date toDate(double value)
Date object. If the given value is
NaN or infinite, then this method returns null.
This is consistent with usage in DateRange,
where the null value is used for unbounded ranges.
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).
time - The value as a date, or null.
NaN
if the given time is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||