org.deegree.crs.coordinatesystems
Class CompoundCRS
java.lang.Object
org.deegree.crs.Identifiable
org.deegree.crs.coordinatesystems.CoordinateSystem
org.deegree.crs.coordinatesystems.CompoundCRS
- All Implemented Interfaces:
- java.io.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
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.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 |
CompoundCRS
public CompoundCRS(Axis heightAxis,
CoordinateSystem underlyingCRS,
double defaultHeight,
Identifiable identity)
throws java.lang.IllegalArgumentException
- Parameters:
heightAxis
- defining the name and the units of the 'vertical' axisunderlyingCRS
- 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:
java.lang.IllegalArgumentException
- if the underlying crs is not of type geographic, geocentric or projected or one of the other values
is null
.
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.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org