|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractDatum
DefaultTemporalDatum
@Immutable public class DefaultTemporalDatum
A temporal datum defines the origin of a temporal coordinate reference system.
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static DefaultTemporalDatum |
DUBLIN_JULIAN
Datum for time measured since December 31, 1899 at 12:00 UTC. |
static DefaultTemporalDatum |
JULIAN
Datum for time measured since January 1st, 4713 BC at 12:00 UTC. |
static DefaultTemporalDatum |
MODIFIED_JULIAN
Datum for time measured since November 17, 1858 at 00:00 UTC. |
static DefaultTemporalDatum |
TRUNCATED_JULIAN
Datum for time measured since May 24, 1968 at 00:00 UTC. |
static DefaultTemporalDatum |
UNIX
Default datum for time measured since January 1st, 1970 at 00:00 UTC. |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface Datum |
|---|
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultTemporalDatum(Map<String,?> properties,
Date origin)
Constructs a temporal datum from a set of properties. |
|
DefaultTemporalDatum(String name,
Date origin)
Constructs a temporal datum from a name. |
|
DefaultTemporalDatum(TemporalDatum datum)
Constructs a new datum with the same values than the specified one. |
|
| Method Summary | |
|---|---|
static DefaultTemporalDatum |
castOrCopy(TemporalDatum object)
Returns a Geotk datum implementation with the same values than the given arbitrary implementation. |
protected int |
computeHashCode()
Computes a hash value for this identified object. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this temporal datum with the specified object for equality. |
Date |
getOrigin()
The date and time origin of this temporal datum. |
static DefaultTemporalDatum |
wrap(TemporalDatum object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractDatum |
|---|
formatWKT, getAnchorPoint, getDomainOfValidity, getRealizationEpoch, 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 TemporalDatum |
|---|
getAnchorPoint, getRealizationEpoch |
| Methods inherited from interface Datum |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultTemporalDatum JULIAN
DefaultTemporalCRS.JULIANpublic static final DefaultTemporalDatum MODIFIED_JULIAN
MJD = JD − 2400000.5.
DefaultTemporalCRS.MODIFIED_JULIANpublic static final DefaultTemporalDatum TRUNCATED_JULIAN
TJD = JD − 2440000.5.
DefaultTemporalCRS.TRUNCATED_JULIANpublic static final DefaultTemporalDatum DUBLIN_JULIAN
DJD = JD − 2415020.
DefaultTemporalCRS.DUBLIN_JULIANpublic static final DefaultTemporalDatum UNIX
DefaultTemporalCRS.UNIX,
DefaultTemporalCRS.JAVA| Constructor Detail |
|---|
public DefaultTemporalDatum(TemporalDatum datum)
datum - The datum to copy.
public DefaultTemporalDatum(String name,
Date origin)
name - The datum name.origin - The date and time origin of this temporal datum.
public DefaultTemporalDatum(Map<String,?> properties,
Date origin)
properties - Set of properties. Should contains at least "name".origin - The date and time origin of this temporal datum.| Method Detail |
|---|
public static DefaultTemporalDatum castOrCopy(TemporalDatum object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object.
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.@Deprecated public static DefaultTemporalDatum wrap(TemporalDatum object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public Date getOrigin()
getOrigin in interface TemporalDatum
public boolean equals(Object object,
ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractDatumobject - The object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only properties
relevant to transformations.
true if both objects are equal.protected int computeHashCode()
AbstractIdentifiedObject.hashCode() when first needed.
Implementation specific feature
In the Geotk implementation, the name, identifiers and remarks are not used for hash code computation.
Consequently two identified objects will return the same hash value if they are equal in the
sense of equals(…,
ComparisonMode.IGNORE_METADATA). This feature allows users to
implement metadata-insensitive HashMap.
computeHashCode in class AbstractIdentifiedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||