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

org.deegree.model.csct.cs
Class CompoundCoordinateSystem

java.lang.Object
  extended by org.deegree.model.csct.cs.Info
      extended by org.deegree.model.csct.cs.CoordinateSystem
          extended by org.deegree.model.csct.cs.CompoundCoordinateSystem
All Implemented Interfaces:
Serializable, Dimensioned

public class CompoundCoordinateSystem
extends CoordinateSystem

An aggregate of two coordinate systems. One of these is usually a two dimensional coordinate system such as a geographic or a projected coordinate system with a horizontal datum. The other is one-dimensional coordinate system with a vertical datum.

Version:
1.00, $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux, last edited by: $Author: bezema $
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem", Serialized Form

Field Summary
static CompoundCoordinateSystem WGS84
          A default three-dimensional coordinate system for use with geographic coordinates with heights above the ellipsoid.
 
Fields inherited from class org.deegree.model.csct.cs.Info
pool
 
Constructor Summary
CompoundCoordinateSystem(Map properties, CoordinateSystem head, CoordinateSystem tail)
          Creates a compound coordinate system.
CompoundCoordinateSystem(String name, CoordinateSystem head, CoordinateSystem tail)
          Creates a compound coordinate system.
 
Method Summary
(package private)  String addString(StringBuffer buffer)
          Fill the part inside "[...]".
 boolean equals(Object object)
          Compares the specified object with this coordinate system for equality.
 boolean equivalents(CoordinateSystem cs)
          Returns true if this coordinate system is equivalents to the specified coordinate system.
 AxisInfo getAxis(int dimension)
          Gets axis details for dimension within coordinate system.
 Envelope getDefaultEnvelope()
          Gets default envelope of coordinate system.
 int getDimension()
          Returns the dimension of the coordinate system.
 CoordinateSystem getHeadCS()
          Returns the first sub-coordinate system.
 CoordinateSystem getTailCS()
          Returns the second sub-coordinate system.
 Unit getUnits(int dimension)
          Gets units for dimension within coordinate system.
 
Methods inherited from class org.deegree.model.csct.cs.CoordinateSystem
checkAxis, getDatum, getUnits
 
Methods inherited from class org.deegree.model.csct.cs.Info
addString, addUnit, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WGS84

public static final CompoundCoordinateSystem WGS84
A default three-dimensional coordinate system for use with geographic coordinates with heights above the ellipsoid. The head coordinate system is GeographicCoordinateSystem.WGS84 and the tail coordinate system is VerticalCoordinateSystem.ELLIPSOIDAL.

Constructor Detail

CompoundCoordinateSystem

public CompoundCoordinateSystem(String name,
                                CoordinateSystem head,
                                CoordinateSystem tail)
Creates a compound coordinate system.

Parameters:
name - Name to give new object.
head - Coordinate system to use for earlier ordinates.
tail - Coordinate system to use for later ordinates.

CompoundCoordinateSystem

CompoundCoordinateSystem(Map properties,
                         CoordinateSystem head,
                         CoordinateSystem tail)
Creates a compound coordinate system.

Parameters:
properties - The set of properties (see Info).
head - Coordinate system to use for earlier ordinates.
tail - Coordinate system to use for later ordinates.
Method Detail

getHeadCS

public CoordinateSystem getHeadCS()
Returns the first sub-coordinate system.

Returns:
the first sub-coordinate system.
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getHeadCS()"

getTailCS

public CoordinateSystem getTailCS()
Returns the second sub-coordinate system.

Returns:
the second sub-coordinate system.
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getTailCS()"

getDimension

public int getDimension()
Returns the dimension of the coordinate system.

Specified by:
getDimension in interface Dimensioned
Specified by:
getDimension in class CoordinateSystem
Returns:
the dimension of the coordinate system.
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getDimension()"

getAxis

public AxisInfo getAxis(int dimension)
Gets axis details for dimension within coordinate system. Each dimension in the coordinate system has a corresponding axis.

Specified by:
getAxis in class CoordinateSystem
Parameters:
dimension -
Returns:
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getAxis(int)"

getUnits

public Unit getUnits(int dimension)
Gets units for dimension within coordinate system. Each dimension in the coordinate system has corresponding units.

Specified by:
getUnits in class CoordinateSystem
Parameters:
dimension -
Returns:
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getUnits(int)"

getDefaultEnvelope

public Envelope getDefaultEnvelope()
Gets default envelope of coordinate system.

Overrides:
getDefaultEnvelope in class CoordinateSystem
Returns:
See Also:
"org.opengis.cs.CS_CompoundCoordinateSystem#getDefaultEnvelope()"

equivalents

public boolean equivalents(CoordinateSystem cs)
Returns true if this coordinate system is equivalents to the specified coordinate system. Two coordinate systems are considered equivalent if the CoordinateTransformation from this to cs would be the identity transform.

Overrides:
equivalents in class CoordinateSystem
Parameters:
cs - The coordinate system (may be null).
Returns:
true if both coordinate systems are equivalent.

equals

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

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

addString

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

Parameters:
buffer -
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