org.deegree_impl.model.cs
Class LocalDatum

java.lang.Object
  extended byorg.deegree_impl.model.cs.Info
      extended byorg.deegree_impl.model.cs.Datum
          extended byorg.deegree_impl.model.cs.LocalDatum
All Implemented Interfaces:
java.io.Serializable

public class LocalDatum
extends Datum

Local datum. If two local datum objects have the same datum type and name, then they can be considered equal. This means that coordinates can be transformed between two different local coordinate systems, as long as they are based on the same local datum.

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

Nested Class Summary
private  class LocalDatum.Export
          Wrap a LocalDatum 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.
 
Fields inherited from class org.deegree_impl.model.cs.Datum
 
Fields inherited from class org.deegree_impl.model.cs.Info
pool
 
Constructor Summary
(package private) LocalDatum(java.util.Map properties, DatumType type)
          Creates a local datum.
  LocalDatum(java.lang.String name, DatumType.Local type)
          Creates a local datum.
 
Method Summary
(package private)  java.lang.String addString(java.lang.StringBuffer buffer)
          Fill the part inside "[...]".
 DatumType getDatumType()
          Gets the type of the datum as an enumerated code.
(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.Datum
equals, hashCode
 
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
Constructor Detail

LocalDatum

public LocalDatum(java.lang.String name,
                  DatumType.Local type)
Creates a local datum.

Parameters:
name - Name to give new object.
type - Type of local datum to create.

LocalDatum

LocalDatum(java.util.Map properties,
           DatumType type)
Creates a local datum.

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

getDatumType

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

Overrides:
getDatumType in class Datum
See Also:
CS_Datum.getDatumType()

addString

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

Overrides:
addString in class Datum

toOpenGIS

final 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 Datum