org.deegree.cs.refs.components
Class EllipsoidRef
java.lang.Object
org.deegree.commons.tom.Reference<T>
org.deegree.cs.refs.CRSResourceRef<IEllipsoid>
org.deegree.cs.refs.components.EllipsoidRef
- All Implemented Interfaces:
- Serializable, Object, TypedObjectNode, IEllipsoid, CRSResource
public class EllipsoidRef
- extends CRSResourceRef<IEllipsoid>
- implements Serializable, IEllipsoid
CRSesourceRef
to a IEllipsoid
- Version:
- $Revision: $, $Date: $
- Author:
- Lyn Buesching, last edited by: $Author: lyn $
- See Also:
- Serialized Form
Methods inherited from class org.deegree.cs.refs.CRSResourceRef |
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.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 |
EllipsoidRef
public EllipsoidRef(ReferenceResolver resolver,
String uri,
String baseURL)
- Creates a reference to a
IEllipsoid
- 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)
getEccentricity
public double getEccentricity()
- Specified by:
getEccentricity
in interface IEllipsoid
- Returns:
- the eccentricity.
getSquaredEccentricity
public double getSquaredEccentricity()
- Specified by:
getSquaredEccentricity
in interface IEllipsoid
- Returns:
- the squared eccentricity of the ellipsoid-
getFlattening
public double getFlattening()
- Specified by:
getFlattening
in interface IEllipsoid
- Returns:
- the flattening.
getInverseFlattening
public double getInverseFlattening()
- Specified by:
getInverseFlattening
in interface IEllipsoid
- Returns:
- the inverseFlattening.
getSemiMajorAxis
public double getSemiMajorAxis()
- Specified by:
getSemiMajorAxis
in interface IEllipsoid
- Returns:
- the semiMajorAxis.
getSemiMinorAxis
public double getSemiMinorAxis()
- Specified by:
getSemiMinorAxis
in interface IEllipsoid
- Returns:
- the semiMinorAxis.
getUnits
public IUnit getUnits()
- Specified by:
getUnits
in interface IEllipsoid
- Returns:
- the units.
setUnits
public void setUnits(IUnit units)
- Specified by:
setUnits
in interface IEllipsoid
isSphere
public boolean isSphere()
- Specified by:
isSphere
in interface IEllipsoid
- Returns:
- true if this ellipsoid has no eccentricity.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class CRSResourceRef<IEllipsoid>
Copyright © 2011. All Rights Reserved.