org.deegree.cs.components
Class GeodeticDatum

java.lang.Object
  extended by org.deegree.cs.CRSIdentifiable
      extended by org.deegree.cs.components.Datum
          extended by org.deegree.cs.components.GeodeticDatum
All Implemented Interfaces:
Object, TypedObjectNode, IDatum, IGeodeticDatum, CRSResource

public class GeodeticDatum
extends Datum
implements IGeodeticDatum

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

Version:
$Revision: 29642 $, $Date: 2011-02-11 13:59:33 +0100 (Fri, 11 Feb 2011) $
Author:
Rutger Bezema, last edited by: $Author: lbuesching $

Field Summary
static GeodeticDatum WGS84
          The default WGS 1984 datum, with primeMeridian set to Greenwich and default (no) wgs84 conversion info.
 
Constructor Summary
GeodeticDatum(IEllipsoid ellipsoid, CRSCodeType code, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian, with no helmert.
GeodeticDatum(IEllipsoid ellipsoid, Helmert toWGS84, CRSCodeType[] codes)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(IEllipsoid ellipsoid, Helmert toWGS84, CRSCodeType code, String name)
          A datum with given ellipsoid and a GreenWich prime-meridian.
GeodeticDatum(IEllipsoid ellipsoid, IPrimeMeridian primeMeridian, CRSResource id)
           
GeodeticDatum(IEllipsoid ellipsoid, IPrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType[] codes)
          A datum with given ellipsoid and a prime-meridian.
GeodeticDatum(IEllipsoid ellipsoid, IPrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType[] codes, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
           
GeodeticDatum(IEllipsoid ellipsoid, IPrimeMeridian primeMeridian, Helmert toWGS84, CRSCodeType code, String name, String version, String description, String areaOfUse)
           
GeodeticDatum(IEllipsoid ellipsoid, IPrimeMeridian primeMeridian, Helmert toWGS84, CRSResource id)
           
 
Method Summary
 boolean equals(Object other)
           
 IEllipsoid getEllipsoid()
           
 IPrimeMeridian 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(IPrimeMeridian primeMeridian)
           
 void setToWGS84(Helmert toWGS84Conversion)
           
 String toString()
           
 
Methods inherited from class org.deegree.cs.CRSIdentifiable
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getId, 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
 
Methods inherited from interface org.deegree.cs.CRSResource
addAreaOfUse, addName, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
Methods inherited from interface org.deegree.commons.tom.Object
getId
 

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(IEllipsoid ellipsoid,
                     IPrimeMeridian primeMeridian,
                     Helmert toWGS84,
                     CRSResource 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(IEllipsoid ellipsoid,
                     IPrimeMeridian primeMeridian,
                     CRSResource id)
Parameters:
ellipsoid - of this datum
primeMeridian - to which this datum is defined.
id - containing all relevant id data.

GeodeticDatum

public GeodeticDatum(IEllipsoid ellipsoid,
                     IPrimeMeridian 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(IEllipsoid 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(IEllipsoid ellipsoid,
                     IPrimeMeridian 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(IEllipsoid ellipsoid,
                     IPrimeMeridian 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(IEllipsoid 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(IEllipsoid 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 IEllipsoid getEllipsoid()
Specified by:
getEllipsoid in interface IGeodeticDatum
Returns:
the ellipsoid.

getPrimeMeridian

public final IPrimeMeridian getPrimeMeridian()
Specified by:
getPrimeMeridian in interface IGeodeticDatum
Returns:
the primeMeridian.

setPrimeMeridian

public final void setPrimeMeridian(IPrimeMeridian primeMeridian)
Specified by:
setPrimeMeridian in interface IGeodeticDatum
Parameters:
primeMeridian -

getWGS84Conversion

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

setToWGS84

public final void setToWGS84(Helmert toWGS84Conversion)
Specified by:
setToWGS84 in interface IGeodeticDatum
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 CRSIdentifiable
Returns:
(int) ( result >>> 32 ) ^ (int) result;
See Also:
Object.hashCode()


Copyright © 2011. All Rights Reserved.