org.deegree.cs.refs.coordinatesystem
Class CompoundCRSRef

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.cs.refs.CRSResourceRef<ICRS>
          extended by org.deegree.cs.refs.coordinatesystem.CRSRef
              extended by org.deegree.cs.refs.coordinatesystem.CompoundCRSRef
All Implemented Interfaces:
Serializable, Object, TypedObjectNode, ICompoundCRS, ICRS, CRSResource

public class CompoundCRSRef
extends CRSRef
implements ICompoundCRS

CRSRef to a CompoundCRS

Version:
$Revision: $, $Date: $
Author:
Lyn Buesching, last edited by: $Author: lyn $
See Also:
Serialized Form

Constructor Summary
CompoundCRSRef(ReferenceResolver resolver, String uri, String baseURL)
          Creates a reference to a CompoundCRS
CompoundCRSRef(ReferenceResolver resolver, String uri, String baseURL, boolean forceXY)
          Creates a new CompoundCRSRef instance with a coordinate reference system name.
 
Method Summary
 boolean equals(Object obj)
           
 double getDefaultHeight()
           
 IAxis getHeightAxis()
           
 IUnit getHeightUnits()
           
 CompoundCRS getReferencedObject()
          Returns the referenced Object instance (may trigger resolving and fetching it).
 ICRS getUnderlyingCRS()
           
 
Methods inherited from class org.deegree.cs.refs.coordinatesystem.CRSRef
convertToAxis, equalsWithFlippedAxis, getAlias, getAreaOfUse, getAreaOfUseBBox, getAxis, getDatum, getDimension, getDirectTransformation, getEasting, getGeodeticDatum, getName, getNorthing, getTransformations, getType, getUnits, getValidDomain, hasDirectTransformation, hashCode, isXYForced, toString
 
Methods inherited from class org.deegree.cs.refs.CRSResourceRef
addAreaOfUse, addName, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
Methods inherited from class org.deegree.commons.tom.Reference
getId, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.cs.coordinatesystems.ICompoundCRS
getAxis
 
Methods inherited from interface org.deegree.cs.coordinatesystems.ICRS
convertToAxis, equalsWithFlippedAxis, getAlias, getDatum, getDimension, getDirectTransformation, getEasting, getGeodeticDatum, getNorthing, getTransformations, getType, getUnits, getValidDomain, hasDirectTransformation
 
Methods inherited from interface org.deegree.cs.CRSResource
addAreaOfUse, addName, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
Methods inherited from interface org.deegree.commons.tom.Object
getId
 

Constructor Detail

CompoundCRSRef

public CompoundCRSRef(ReferenceResolver resolver,
                      String uri,
                      String baseURL)
Creates a reference to a CompoundCRS

Parameters:
resolver - used for resolving the reference, must not be null
uri - the object's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)

CompoundCRSRef

public CompoundCRSRef(ReferenceResolver resolver,
                      String uri,
                      String baseURL,
                      boolean forceXY)
Creates a new CompoundCRSRef instance with a coordinate reference system name.

Parameters:
resolver - used for resolving the reference, must not be null
uri - the object's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
crsName - name of the crs (identification string) or null
forceXY - true if the axis order of the coordinate system should be x/y (EAST/NORTH; WEST/SOUTH); false id the defined axis order should be taken
Method Detail

getHeightAxis

public IAxis getHeightAxis()
Specified by:
getHeightAxis in interface ICompoundCRS
Returns:
the heightAxis.

getHeightUnits

public IUnit getHeightUnits()
Specified by:
getHeightUnits in interface ICompoundCRS
Returns:
the units of the heightAxis.

getUnderlyingCRS

public ICRS getUnderlyingCRS()
Specified by:
getUnderlyingCRS in interface ICompoundCRS
Returns:
the underlyingCRS.

getDefaultHeight

public double getDefaultHeight()
Specified by:
getDefaultHeight in interface ICompoundCRS
Returns:
the defaultHeight or 0 if it was not set.

equals

public boolean equals(Object obj)
Overrides:
equals in class CRSRef

getReferencedObject

public CompoundCRS getReferencedObject()
Description copied from class: Reference
Returns the referenced Object instance (may trigger resolving and fetching it).

Overrides:
getReferencedObject in class CRSRef
Returns:
the referenced Object instance


Copyright © 2011. All Rights Reserved.