| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.datum.AbstractDatum org.geotools.referencing.datum.DefaultGeodeticDatum
DefaultGeodeticDatum | public class DefaultGeodeticDatum extends AbstractDatum implements GeodeticDatum(Code) | | 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).
since: 2.1 version: $Id: DefaultGeodeticDatum.java 25262 2007-04-23 21:11:16Z desruisseaux $ author: Martin Desruisseaux See Also: Ellipsoid See Also: PrimeMeridian |
Constructor Summary | |
public | DefaultGeodeticDatum(GeodeticDatum datum) Constructs a new datum with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultGeodeticDatum(String name, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) Constructs a geodetic datum from a name. | public | DefaultGeodeticDatum(Map properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian) Constructs a geodetic datum from a set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this datum with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public static Matrix | getAffineTransform(GeodeticDatum source, GeodeticDatum target) Returns a matrix that can be used to define a transformation to the specified datum.
If no transformation path is found, then this method returns
null .
Parameters: source - The source datum. Parameters: target - The target datum. | public BursaWolfParameters[] | getBursaWolfParameters() Returns all Bursa Wolf parameters specified in the
properties map at
construction time. | public BursaWolfParameters | getBursaWolfParameters(GeodeticDatum target) Returns Bursa Wolf parameters for a datum shift toward the specified target, or
null if none. | public Ellipsoid | getEllipsoid() Returns the ellipsoid. | public PrimeMeridian | getPrimeMeridian() Returns the prime meridian. | public int | hashCode() Returns a hash value for this geodetic datum. | public static boolean | isWGS84(Datum datum) Returns
true if the specified object is equals (at least on
computation purpose) to the
DefaultGeodeticDatum.WGS84 datum. |
BURSA_WOLF_KEY | final public static String BURSA_WOLF_KEY(Code) | | The
property for
.
|
DefaultGeodeticDatum | public DefaultGeodeticDatum(GeodeticDatum datum)(Code) | | Constructs a new datum with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 |
DefaultGeodeticDatum | public DefaultGeodeticDatum(String name, Ellipsoid ellipsoid, PrimeMeridian primeMeridian)(Code) | | Constructs a geodetic datum from a name.
Parameters: name - The datum name. Parameters: ellipsoid - The ellipsoid. Parameters: primeMeridian - The prime meridian. |
DefaultGeodeticDatum | public DefaultGeodeticDatum(Map properties, Ellipsoid ellipsoid, PrimeMeridian primeMeridian)(Code) | | Constructs a geodetic datum from a set of properties. The properties map is given
unchanged to the
.
Additionally, the following properties are understood by this construtor:
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: ellipsoid - The ellipsoid. Parameters: primeMeridian - The prime meridian. |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this datum with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
getAffineTransform | public static Matrix getAffineTransform(GeodeticDatum source, GeodeticDatum target)(Code) | | Returns a matrix that can be used to define a transformation to the specified datum.
If no transformation path is found, then this method returns
null .
Parameters: source - The source datum. Parameters: target - The target datum. An affine transform from source to target , or null if none. See Also: BursaWolfParameters.getAffineTransform |
getBursaWolfParameters | public BursaWolfParameters[] getBursaWolfParameters()(Code) | | Returns all Bursa Wolf parameters specified in the
properties map at
construction time.
since: 2.4 |
getBursaWolfParameters | public BursaWolfParameters getBursaWolfParameters(GeodeticDatum target)(Code) | | Returns Bursa Wolf parameters for a datum shift toward the specified target, or
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
DefaultGeodeticDatum.getAffineTransform instead.
|
getEllipsoid | public Ellipsoid getEllipsoid()(Code) | | Returns the ellipsoid.
|
getPrimeMeridian | public PrimeMeridian getPrimeMeridian()(Code) | | Returns the prime meridian.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this geodetic datum.
,
and the like are not taken in account. In
other words, two geodetic datums will return the same hash value if they
are equal in the sense of
DefaultGeodeticDatum.equals equals (AbstractIdentifiedObject, false) .
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
isWGS84 | public static boolean isWGS84(Datum datum)(Code) | | Returns
true if the specified object is equals (at least on
computation purpose) to the
DefaultGeodeticDatum.WGS84 datum. This method may conservatively
returns
false if the specified datum is uncertain (for example
because it come from an other implementation).
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|