org.deegree.crs.coordinatesystems
Class CompoundCRS
java.lang.Object
org.deegree.crs.CRSIdentifiable
org.deegree.crs.coordinatesystems.CoordinateSystem
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 $
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 |
CompoundCRS
public CompoundCRS(Axis heightAxis,
CoordinateSystem underlyingCRS,
double defaultHeight,
CRSIdentifiable identity)
throws 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:
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]]>