org.deegree_impl.model.cs
Class Datum

java.lang.Object
  extended byorg.deegree_impl.model.cs.Info
      extended byorg.deegree_impl.model.cs.Datum
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HorizontalDatum, LocalDatum, TemporalDatum, VerticalDatum

public class Datum
extends Info

A set of quantities from which other quantities are calculated. It may be a textual description and/or a set of parameters describing the relationship of a coordinate system to some predefined physical locations (such as center of mass) and physical directions (such as axis of spin). It can be defined as a set of real points on the earth that have coordinates. For example a datum can be thought of as a set of parameters defining completely the origin and orientation of a coordinate system with respect to the earth. The definition of the datum may also include the temporal behavior (such as the rate of change of the orientation of the coordinate axes).

Version:
1.00
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CS_Datum, Serialized Form

Nested Class Summary
(package private)  class Datum.Export
          Wrap a Datum object for use with OpenGIS.
 
Nested classes inherited from class org.deegree_impl.model.cs.Info
Info.AngularUnit, Info.LinearUnit
 
Field Summary
private static long serialVersionUID
          Serial number for interoperability with different versions.
private  DatumType type
          The datum type.
 
Fields inherited from class org.deegree_impl.model.cs.Info
pool
 
Constructor Summary
(package private) Datum(java.util.Map properties, DatumType type)
          Construct a new datum with the specified properties.
  Datum(java.lang.String name, DatumType type)
          Construct a new datum with the specified name and datum type.
 
Method Summary
(package private)  java.lang.String addString(java.lang.StringBuffer buffer)
          Fill the part inside "[...]".
 boolean equals(java.lang.Object object)
          Compares the specified object with this datum for equality.
 DatumType getDatumType()
          Gets the type of the datum as an enumerated code.
 int hashCode()
          Returns a hash value for this datum.
(package private)  java.lang.Object toOpenGIS(java.lang.Object adapters)
          Returns an OpenGIS interface for this datum.
 
Methods inherited from class org.deegree_impl.model.cs.Info
addUnit, cachedOpenGIS, 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

serialVersionUID

private static final long serialVersionUID
Serial number for interoperability with different versions.

See Also:
Constant Field Values

type

private final DatumType type
The datum type.

Constructor Detail

Datum

public Datum(java.lang.String name,
             DatumType type)
Construct a new datum with the specified name and datum type.

Parameters:
name - The datum name.
type - The datum type.

Datum

Datum(java.util.Map properties,
      DatumType type)
Construct a new datum with the specified properties.

Parameters:
properties - The set of properties (see Info).
type - The datum type.
Method Detail

getDatumType

public DatumType getDatumType()
Gets the type of the datum as an enumerated code.

See Also:
CS_Datum.getDatumType()

hashCode

public int hashCode()
Returns a hash value for this datum.

Overrides:
hashCode in class Info

equals

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

Overrides:
equals in class Info

addString

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

Overrides:
addString in class Info
Parameters:
buffer - The buffer to add string to.
Returns:
The WKT code name (e.g. "GEOGCS").

toOpenGIS

java.lang.Object toOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this datum. The returned object is suitable for RMI use. Note: The returned type is a generic Object in order to avoid too early class loading of OpenGIS interface.

Overrides:
toOpenGIS in class Info