deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.crs.components
Class GeodeticDatum

java.lang.Object
  extended by org.deegree.crs.CRSIdentifiable
      extended by org.deegree.crs.components.Datum
          extended by org.deegree.crs.components.GeodeticDatum

public class GeodeticDatum
extends Datum

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

Version:
$Revision: 18793 $, $Date: 2009-07-29 14:07:52 +0200 (Mi, 29 Jul 2009) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

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, CRSCodeType code, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian, with no helmert.
GeodeticDatum(Ellipsoid ellipsoid, Helmert toWGS84, CRSCodeType[] codes)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, Helmert toWGS84, CRSCodeType code, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, CRSIdentifiable id)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType[] codes)
          A datum with given ellipsoid and a prime-meridian.
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType[] codes, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType code, String name, String version, String description, String areaOfUse)
           
GeodeticDatum(Ellipsoid ellipsoid, PrimeMeridian primeMeridian, Helmert toWGS84, CRSIdentifiable id)
           
 
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 setPrimeMeridian(PrimeMeridian primeMeridian)
           
 void setToWGS84(Helmert toWGS84Conversion)
           
 String toString()
           
 
Methods inherited from class org.deegree.crs.CRSIdentifiable
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
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,
                     CRSIdentifiable 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,
                     CRSIdentifiable 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,
                     CRSCodeType[] codes,
                     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.
codes -
names -
versions -
descriptions -
areasOfUse -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     Helmert toWGS84,
                     CRSCodeType[] codes)
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.
codes -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     CRSCodeType[] codes)
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.
codes -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     PrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     CRSCodeType code,
                     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.
code -
name -
version -
description -
areaOfUse -

GeodeticDatum

public GeodeticDatum(Ellipsoid ellipsoid,
                     Helmert toWGS84,
                     CRSCodeType code,
                     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.
code -
name -

GeodeticDatum

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

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

getEllipsoid

public final Ellipsoid getEllipsoid()
Returns:
the ellipsoid.

getPrimeMeridian

public final PrimeMeridian getPrimeMeridian()
Returns:
the primeMeridian.

setPrimeMeridian

public final void setPrimeMeridian(PrimeMeridian primeMeridian)
Parameters:
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 CRSIdentifiable

toString

public String toString()
Overrides:
toString in class CRSIdentifiable

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-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>