public class DefaultTemporalCRS extends AbstractSingleCRS implements TemporalCRS
Used with CS type(s) |
---|
Time
|
Modifier and Type | Field and Description |
---|---|
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 Unit<Time> |
MILLISECOND
Unit for milliseconds.
|
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.
|
datum
coordinateSystem
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
TimeCS |
getCoordinateSystem()
Returns the coordinate system.
|
TemporalDatum |
getDatum()
Returns the datum.
|
int |
hashCode()
Returns a hash value for this geographic CRS.
|
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 crs)
Wraps an arbitrary temporal CRS into a Geotools implementation.
|
equals, getAxis, getDimension
distance, formatWKT
getDomainOfValidity, getScope, getValidArea
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getDomainOfValidity, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static final DefaultTemporalCRS JULIAN
DefaultTemporalDatum.JULIAN
,
DefaultTimeCS.DAYS
public static final DefaultTemporalCRS MODIFIED_JULIAN
MJD = JD −
2400000.5
.DefaultTemporalDatum.MODIFIED_JULIAN
,
DefaultTimeCS.DAYS
public static final DefaultTemporalCRS TRUNCATED_JULIAN
TJD = JD − 2440000.5
.DefaultTemporalDatum.TRUNCATED_JULIAN
,
DefaultTimeCS.DAYS
public static final DefaultTemporalCRS DUBLIN_JULIAN
DJD = JD − 2415020
.DefaultTemporalDatum.DUBLIN_JULIAN
,
DefaultTimeCS.DAYS
public static final DefaultTemporalCRS UNIX
DefaultTemporalDatum.UNIX
,
DefaultTimeCS.SECONDS
public static final DefaultTemporalCRS JAVA
DefaultTemporalDatum.UNIX
,
DefaultTimeCS.MILLISECONDS
public static final Unit<Time> MILLISECOND
Date
objects.public DefaultTemporalCRS(TemporalCRS crs)
crs
- The coordinate reference system to copy.wrap(org.opengis.referencing.crs.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.public static DefaultTemporalCRS wrap(TemporalCRS crs)
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.crs
- The temporal CRS to wrap.DefaultTemporalCRS
.public TimeCS getCoordinateSystem()
getCoordinateSystem
in interface CoordinateReferenceSystem
getCoordinateSystem
in interface SingleCRS
getCoordinateSystem
in interface TemporalCRS
getCoordinateSystem
in class AbstractCRS
public TemporalDatum getDatum()
getDatum
in interface SingleCRS
getDatum
in interface TemporalCRS
getDatum
in class AbstractSingleCRS
public Date toDate(double value)
Date
object. This method is the converse of toValue(java.util.Date)
.value
- A value in this axis unit.public double toValue(Date time)
toDate(double)
.time
- The value as a date.public int hashCode()
hashCode
in class AbstractSingleCRS
Copyright © 1996–2019 Geotools. All rights reserved.