deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.cs
Class HorizontalDatum

java.lang.Object
  extended by org.deegree.model.csct.cs.Info
      extended by org.deegree.model.csct.cs.Datum
          extended by org.deegree.model.csct.cs.HorizontalDatum
All Implemented Interfaces:
Serializable

public class HorizontalDatum
extends Datum

Procedure used to measure positions on the surface of the Earth.

Version:
1.00, $Revision: 7056 $, $Date: 2007-05-10 09:27:49 +0200 (Do, 10 Mai 2007) $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux, last edited by: $Author: apoth $
See Also:
"org.opengis.cs.CS_HorizontalDatum", Serialized Form

Field Summary
static HorizontalDatum WGS84
          The default WGS 1984 datum.
 
Fields inherited from class org.deegree.model.csct.cs.Info
pool
 
Constructor Summary
HorizontalDatum(Map properties, DatumType type, Ellipsoid ellipsoid, WGS84ConversionInfo parameters)
          Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.
HorizontalDatum(String name, DatumType.Horizontal type, Ellipsoid ellipsoid, WGS84ConversionInfo parameters)
          Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.
HorizontalDatum(String name, Ellipsoid ellipsoid)
          Creates horizontal datum from an ellipsoid.
 
Method Summary
(package private)  String addString(StringBuffer buffer)
          Fill the part inside "[...]".
 boolean equals(Object object)
          Compares the specified object with this datum for equality.
 DatumType getDatumType()
          Gets the type of the datum as an enumerated code.
 Ellipsoid getEllipsoid()
          Returns the ellipsoid.
 WGS84ConversionInfo getWGS84Parameters()
          Gets preferred parameters for a Bursa Wolf transformation into WGS84.
 
Methods inherited from class org.deegree.model.csct.cs.Datum
hashCode
 
Methods inherited from class org.deegree.model.csct.cs.Info
addString, addUnit, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WGS84

public static final HorizontalDatum WGS84
The default WGS 1984 datum.

Constructor Detail

HorizontalDatum

public HorizontalDatum(String name,
                       Ellipsoid ellipsoid)
Creates horizontal datum from an ellipsoid. The datum type will be DatumType.Horizontal.OTHER.

Parameters:
name - Name to give new object.
ellipsoid - Ellipsoid to use in new horizontal datum.

HorizontalDatum

public HorizontalDatum(String name,
                       DatumType.Horizontal type,
                       Ellipsoid ellipsoid,
                       WGS84ConversionInfo parameters)
Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.

Parameters:
name - Name to give new object.
type - Type of horizontal datum to create.
ellipsoid - Ellipsoid to use in new horizontal datum.
parameters - Suggested approximate conversion from new datum to WGS84, or null if there is none.

HorizontalDatum

HorizontalDatum(Map properties,
                DatumType type,
                Ellipsoid ellipsoid,
                WGS84ConversionInfo parameters)
Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.

Parameters:
properties - The set of properties (see Info).
type - Type of horizontal datum to create.
ellipsoid - Ellipsoid to use in new horizontal datum.
parameters - Suggested approximate conversion from new datum to WGS84, or null if there is none.
Method Detail

getDatumType

public DatumType getDatumType()
Gets the type of the datum as an enumerated code. Note: return type will be changed to DatumType.Horizontal when we will be able to use generic types (with JDK 1.5).

Overrides:
getDatumType in class Datum
Returns:
See Also:
"org.opengis.cs.CS_HorizontalDatum#getDatumType()"

getEllipsoid

public Ellipsoid getEllipsoid()
Returns the ellipsoid.

Returns:
the ellipsoid.
See Also:
"org.opengis.cs.CS_HorizontalDatum#getEllipsoid()"

getWGS84Parameters

public WGS84ConversionInfo getWGS84Parameters()
Gets preferred parameters for a Bursa Wolf transformation into WGS84. The 7 returned values correspond to (dx,dy,dz) in meters, (ex,ey,ez) in arc-seconds, and scaling in parts-per-million. This method will always returns null for horizontal datums with type DatumType.Horizontal.OTHER. This method may also returns null if no suitable transformation is available.

Returns:
See Also:
"org.opengis.cs.CS_HorizontalDatum#getWGS84Parameters()"

addString

String addString(StringBuffer buffer)
Fill the part inside "[...]". Used for formatting Well Know Text (WKT).

Overrides:
addString in class Datum
Parameters:
buffer -
Returns:

equals

public boolean equals(Object object)
Compares the specified object with this datum for equality.

Overrides:
equals in class Datum
Parameters:
object -
Returns:

deegree 2.1 (2007/11/08 09:57 build-328-official)

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