deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.crs.components
Class GeodeticDatum

java.lang.Object
  extended by org.deegree.crs.Identifiable
      extended by org.deegree.crs.components.Datum
          extended by org.deegree.crs.components.GeodeticDatum
All Implemented Interfaces:
Serializable

public class GeodeticDatum
extends Datum

A GeodeticDatum (aka. HorizontalDatum) holds an ellipse and a prime-meridian.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
static GeodeticDatum WGS84
          The default WGS 1984 datum, with primeMeridian set to Greenwich and default (no) wgs84 conversion info.
 
Constructor Summary
GeodeticDatum(Ellipsoid ellipsoid, Helmert toWGS84, String[] identifiers)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, Helmert toWGS84, String identifier, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, Identifiable id)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, String[] identifiers)
          A datum with given ellipsoid and a prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, String[] identifiers, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, String identifier, String name, String version, String description, String areaOfUse)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Identifiable id)
           
GeodeticDatum(Ellipsoid ellipsoid, String identifier, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian, with no helmert.
 
Method Summary
 boolean equals(Object other)
           
 Ellipsoid getEllipsoid()
           
 PrimeMeridian getPrimeMeridian()
           
 Helmert getWGS84Conversion()
           
 int hashCode()
          Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast.
 void setToWGS84(Helmert toWGS84Conversion)
           
 String toString()
           
 
Methods inherited from class org.deegree.crs.Identifiable
checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WGS84

public static final GeodeticDatum WGS84
The default WGS 1984 datum, with primeMeridian set to Greenwich and default (no) wgs84 conversion info.

Constructor Detail

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     Identifiable id)
Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
id - containing all relevant id data.

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Identifiable id)
Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
id - containing all relevant id data.

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     String[] identifiers,
                     String[] names,
                     String[] versions,
                     String[] descriptions,
                     String[] areasOfUse)
Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
identifiers -
names -
versions -
descriptions -
areasOfUse -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     Helmert toWGS84,
                     String[] identifiers)
A datum with given ellipsoid and a GreenWich prime-meridian.

Parameters:
ellipsoid - of this datum
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
identifiers -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     String[] identifiers)
A datum with given ellipsoid and a prime-meridian.

Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
identifiers -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     String identifier,
                     String name,
                     String version,
                     String description,
                     String areaOfUse)
Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
identifier -
name -
version -
description -
areaOfUse -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     Helmert toWGS84,
                     String identifier,
                     String name)
A datum with given ellipsoid and a GreenWich prime-meridian.

Parameters:
ellipsoid - of this datum
toWGS84 - bursa-wolf parameters describing the transform from this datum into the wgs84 datum.
identifier -
name -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     String identifier,
                     String name)
A datum with given ellipsoid and a GreenWich prime-meridian, with no helmert.

Parameters:
ellipsoid - of this datum
identifier -
name -
Method Detail

getEllipsoid

public final Ellipsoid getEllipsoid()
Returns:
the ellipsoid.

getPrimeMeridian

public final PrimeMeridian getPrimeMeridian()
Returns:
the primeMeridian.

getWGS84Conversion

public final Helmert getWGS84Conversion()
Returns:
the toWGS84Conversion information needed to convert this geodetic Datum into the geocentric WGS84 Datum.

setToWGS84

public final void setToWGS84(Helmert toWGS84Conversion)
Parameters:
toWGS84Conversion - the transformation to be used to convert this geodetic datum into the wgs84 datum.

equals

public boolean equals(Object other)
Overrides:
equals in class Identifiable

toString

public String toString()
Overrides:
toString in class Identifiable

hashCode

public int hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. It is created from field f as follows:

Combining the hash code(s) computed above: result = 37 * result + code;

Overrides:
hashCode in class Object
Returns:
(int) ( result >>> 32 ) ^ (int) result;
See Also:
Object.hashCode()

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org