deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.crs.coordinatesystems
Class CompoundCRS

java.lang.Object
  extended by org.deegree.crs.CRSIdentifiable
      extended by org.deegree.crs.coordinatesystems.CoordinateSystem
          extended by org.deegree.crs.coordinatesystems.CompoundCRS

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: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17 Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

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, CRSIdentifiable 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, getEasting, getGeodeticDatum, getNorthing, getTransformations, getTypeName, getUnits, hasDirectTransformation, hashCode, toString
 
Methods inherited from class org.deegree.crs.CRSIdentifiable
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
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,
                   CRSIdentifiable 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-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>