public static enum CommonCRS.Temporal extends Enum<CommonCRS.Temporal>
Referencing objects are cached after creation. Invoking the same method on the same Temporal
instance twice will return the same IdentifiedObject instance, unless the internal cache has been cleared
(e.g. the application is running in a container environment and some modules have been installed or uninstalled).
Example: the following code fetches a temporal Coordinate Reference System using the Julian calendar:
TemporalCRS crs = CommonCRS.Temporal.JULIAN.crs();Below is an alphabetical list of object names available in this enumeration:
Temporal objects accessible by enumeration constants Name or alias Object type Enumeration value Dublin Julian CRS, Datum DUBLIN_JULIANJava time CRS JAVAJulian CRS, Datum JULIANModified Julian CRS, Datum MODIFIED_JULIANTruncated Julian CRS, Datum TRUNCATED_JULIANUnix/POSIX time CRS, Datum UNIX
Defined in the sis-referencing module
| Enum Constant and Description |
|---|
DUBLIN_JULIAN
Time measured as days since December 31, 1899 at 12:00 UTC.
|
JAVA
Time measured as milliseconds since January 1st, 1970 at 00:00 UTC.
|
JULIAN
Time measured as days since January 1st, 4713 BC at 12:00 UTC in proleptic Julian calendar.
|
MODIFIED_JULIAN
Time measured as days since November 17, 1858 at 00:00 UTC.
|
TRUNCATED_JULIAN
Time measured as days since May 24, 1968 at 00:00 UTC.
|
UNIX
Time measured as seconds since January 1st, 1970 at 00:00 UTC.
|
| Modifier and Type | Method and Description |
|---|---|
TemporalCRS |
crs()
Returns the coordinate reference system associated to this temporal object.
|
TemporalDatum |
datum()
Returns the datum associated to this temporal object.
|
static CommonCRS.Temporal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonCRS.Temporal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonCRS.Temporal JULIAN
Note on dates formatting:
the legacy date/time formatting classes in the java.text package uses the proleptic
Julian calendar for dates before October 15, 1582, while the new date/time formatting classes
in the java.time.format package use the ISO-8601 calendar system, which is equivalent
to the proleptic Gregorian calendar for every dates. For parsing and formatting of Julian days,
the SimpleDateFormat class is closer to the common practice (but not ISO 8601
compliant).
public static final CommonCRS.Temporal MODIFIED_JULIAN
MJD = JD − 2400000.5.public static final CommonCRS.Temporal TRUNCATED_JULIAN
TJD = JD − 2440000.5.public static final CommonCRS.Temporal DUBLIN_JULIAN
DJD = JD − 2415020.public static final CommonCRS.Temporal UNIX
public static final CommonCRS.Temporal JAVA
public static CommonCRS.Temporal[] values()
for (CommonCRS.Temporal c : CommonCRS.Temporal.values()) System.out.println(c);
public static CommonCRS.Temporal valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic TemporalCRS crs()
Commonly used temporal CRS Name or alias Enum Dublin Julian DUBLIN_JULIANJulian JULIANModified Julian MODIFIED_JULIANTruncated Julian TRUNCATED_JULIANUnix/POSIX or Java UNIX
DefaultTemporalCRSpublic TemporalDatum datum()
Commonly used temporal datum Name or alias Enum Dublin Julian DUBLIN_JULIANJulian JULIANModified Julian MODIFIED_JULIANTruncated Julian TRUNCATED_JULIANUnix/POSIX or Java UNIX
DefaultTemporalDatumCopyright © 2010–2017 The Apache Software Foundation. All rights reserved.