|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractDatum
DefaultGeodeticDatum
@Immutable public class DefaultGeodeticDatum
Defines the location and precise orientation in 3-dimensional space of a defined ellipsoid (or sphere) that approximates the shape of the earth. Used also for Cartesian coordinate system centered in this ellipsoid (or sphere).
Ellipsoid,
PrimeMeridian,
Serialized Form
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static String |
BURSA_WOLF_KEY
The "bursaWolf" property for
datum shifts. |
static DefaultGeodeticDatum |
SPHERE
Default spherical datum. |
static DefaultGeodeticDatum |
WGS72
Default WGS 1972 datum (EPSG:6322). |
static DefaultGeodeticDatum |
WGS84
Default WGS 1984 datum (EPSG:6326). |
| 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 | |
|---|---|
DefaultGeodeticDatum(GeodeticDatum datum)
Constructs a new datum with the same values than the specified one. |
|
DefaultGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid)
Constructs a geodetic datum using the Greenwich prime meridian. |
|
DefaultGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
Constructs a geodetic datum from a set of properties. |
|
DefaultGeodeticDatum(String name,
Ellipsoid ellipsoid)
Constructs a geodetic datum using the Greenwich prime meridian. |
|
DefaultGeodeticDatum(String name,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
Constructs a geodetic datum from a name and the given prime meridian. |
|
| Method Summary | |
|---|---|
static DefaultGeodeticDatum |
castOrCopy(GeodeticDatum 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)
Compare this datum with the specified object for equality. |
String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
static Matrix |
getAffineTransform(GeodeticDatum source,
GeodeticDatum target)
Returns a matrix that can be used to define a transformation to the specified datum. |
BursaWolfParameters[] |
getBursaWolfParameters()
Returns all Bursa Wolf parameters specified in the properties map at
construction time. |
BursaWolfParameters |
getBursaWolfParameters(GeodeticDatum target)
Returns Bursa Wolf parameters for a datum shift toward the specified target, or null
if none. |
Ellipsoid |
getEllipsoid()
Returns the ellipsoid. |
PrimeMeridian |
getPrimeMeridian()
Returns the prime meridian. |
static boolean |
isWGS84(Datum datum)
Returns true if the specified object is equals (at least on computation purpose)
to the WGS84 datum. |
static DefaultGeodeticDatum |
wrap(GeodeticDatum object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractDatum |
|---|
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 Datum |
|---|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultGeodeticDatum WGS84
org.geotoolkit packages.
DefaultEllipsoid.WGS84,
DefaultGeographicCRS.WGS84public static final DefaultGeodeticDatum WGS72
DefaultEllipsoid.WGS72public static final DefaultGeodeticDatum SPHERE
Note: This datum is close, but not identical, to the datum based on GRS 1980 Authalic Sphere (EPSG:6047). This datum uses a sphere radius of 6371000 metres, while the GRS 1980 Authalic Sphere uses a sphere radius of 6371007 metres.
DefaultEllipsoid.SPHERE,
DefaultGeographicCRS.SPHEREpublic static final String BURSA_WOLF_KEY
"bursaWolf" property for
datum shifts.
| Constructor Detail |
|---|
public DefaultGeodeticDatum(GeodeticDatum datum)
datum - The datum to copy.
public DefaultGeodeticDatum(String name,
Ellipsoid ellipsoid)
name - The datum name.ellipsoid - The ellipsoid.
public DefaultGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid)
properties - Set of properties. Should contains at least "name".ellipsoid - The ellipsoid.
public DefaultGeodeticDatum(String name,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
name - The datum name.ellipsoid - The ellipsoid.primeMeridian - The prime meridian. If omitted, the default is
Greenwich.
public DefaultGeodeticDatum(Map<String,?> properties,
Ellipsoid ellipsoid,
PrimeMeridian primeMeridian)
| Property name | Value type | Value given to |
|---|---|---|
| "bursaWolf" | BursaWolfParameters or an array of those |
getBursaWolfParameters() |
properties - Set of properties. Should contains at least "name".ellipsoid - The ellipsoid.primeMeridian - The prime meridian. If omitted, the default is
Greenwich.| Method Detail |
|---|
public static DefaultGeodeticDatum castOrCopy(GeodeticDatum 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 DefaultGeodeticDatum wrap(GeodeticDatum object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public Ellipsoid getEllipsoid()
getEllipsoid in interface GeodeticDatumpublic PrimeMeridian getPrimeMeridian()
getPrimeMeridian in interface GeodeticDatumpublic BursaWolfParameters[] getBursaWolfParameters()
properties map at
construction time.
public BursaWolfParameters getBursaWolfParameters(GeodeticDatum target)
null
if none. This method search only for Bursa-Wolf parameters explicitly specified in the
properties map at construction time. This method doesn't try to infer a set of
parameters from indirect informations. For example it doesn't try to inverse the parameters
specified in the target datum if none were found in this datum. If such an elaborated
search is wanted, use getAffineTransform(org.opengis.referencing.datum.GeodeticDatum, org.opengis.referencing.datum.GeodeticDatum) instead.
target - The target geodetic datum.
null if none.
public static Matrix getAffineTransform(GeodeticDatum source,
GeodeticDatum target)
null.
source - The source datum.target - The target datum.
source to target, or null if none.BursaWolfParameters.getAffineTransform()public static boolean isWGS84(Datum datum)
true if the specified object is equals (at least on computation purpose)
to the WGS84 datum. This method may conservatively returns false if the
specified datum is uncertain (for example because it come from an other implementation).
datum - The datum to inspect.
true if the given datum is equal to WGS84 for computational purpose.
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 AbstractIdentifiedObjectpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class AbstractDatumformatter - The formatter to use.
"DATUM".FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||