deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.crs.coordinatesystems
Class CompoundCRS

java.lang.Object
  extended by org.deegree.crs.Identifiable
      extended by org.deegree.crs.coordinatesystems.CoordinateSystem
          extended by org.deegree.crs.coordinatesystems.CompoundCRS
All Implemented Interfaces:
Serializable

public class CompoundCRS
extends CoordinateSystem

A CompoundCRS is a GeographicCRS with a third axis (the height axis) attached. This axis denotes a vertical axis, which defines a unit for a given height above or below the datums surface.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.crs.coordinatesystems.CoordinateSystem
COMPOUND_CRS, GEOCENTRIC_CRS, GEOGRAPHIC_CRS, PROJECTED_CRS, VERTICAL_CRS
 
Constructor Summary
CompoundCRS(Axis heightAxis, CoordinateSystem underlyingCRS, double defaultHeight, Identifiable identity)
           
 
Method Summary
 Axis[] getAxis()
           
 double getDefaultHeight()
           
 int getDimension()
           
 Axis getHeightAxis()
           
 Unit getHeightUnits()
           
 int getType()
           
 CoordinateSystem getUnderlyingCRS()
           
 
Methods inherited from class org.deegree.crs.coordinatesystems.CoordinateSystem
convertToAxis, equals, getDatum, getDirectTransformation, getGeodeticDatum, getTransformations, getTypeName, getUnits, hasDirectTransformation, hashCode, toString
 
Methods inherited from class org.deegree.crs.Identifiable
checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundCRS

public CompoundCRS(Axis heightAxis,
                   CoordinateSystem underlyingCRS,
                   double defaultHeight,
                   Identifiable identity)
            throws IllegalArgumentException
Parameters:
heightAxis - defining the name and the units of the 'vertical' axis
underlyingCRS - the crs to which the height axis is added, only geographic, geocentric or projected crs are valid.
defaultHeight - of the any coordinate which does not have a height-axis-value.
identity - containing the identifiable values.
Throws:
IllegalArgumentException - if the underlying crs is not of type geographic, geocentric or projected or one of the other values is null.
Method Detail

getDimension

public int getDimension()
Specified by:
getDimension in class CoordinateSystem
Returns:
the dimension of this CRS.

getType

public final int getType()
Specified by:
getType in class CoordinateSystem
Returns:
one of the *_CRS types defined in this class.

getHeightAxis

public final Axis getHeightAxis()
Returns:
the heightAxis.

getHeightUnits

public final Unit getHeightUnits()
Returns:
the units of the heightAxis.

getAxis

public Axis[] getAxis()
Overrides:
getAxis in class CoordinateSystem
Returns:
the geographic Axis and the heightAxis as the third component.

getUnderlyingCRS

public final CoordinateSystem getUnderlyingCRS()
Returns:
the underlyingCRS.

getDefaultHeight

public double getDefaultHeight()
Returns:
the defaultHeight or 0 if it was not set.

deegree 2.3 (2010/04/09 10:10 build-4-official)

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