org.deegree.cs.refs.projections
Class TransverseMercatorRef

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.cs.refs.CRSResourceRef<IProjection>
          extended by org.deegree.cs.refs.projections.ProjectionRef
              extended by org.deegree.cs.refs.projections.TransverseMercatorRef
All Implemented Interfaces:
Serializable, Object, TypedObjectNode, CRSResource, ITransverseMercator, IProjection

public class TransverseMercatorRef
extends ProjectionRef
implements Serializable, ITransverseMercator

ProjectionRef to a TransverseMercator

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

Constructor Summary
TransverseMercatorRef(ReferenceResolver resolver, String uri, String baseURL)
          Creates a reference to TransverseMercator
 
Method Summary
 boolean equals(Object obj)
           
 boolean getHemisphere()
           
 TransverseMercator getReferencedObject()
          Returns the referenced Object instance (may trigger resolving and fetching it).
 int getRowFromNearestParallel(double latitude)
           
 int getZoneFromNearestMeridian(double longitude)
          the utm zone from a given meridian
 
Methods inherited from class org.deegree.cs.refs.projections.ProjectionRef
doInverseProjection, doProjection, getCosphi0, getEccentricity, getEllipsoid, getFalseEasting, getFalseNorthing, getImplementationName, getNaturalOrigin, getPrimeMeridian, getProjectionLatitude, getProjectionLongitude, getScale, getScaleFactor, getSemiMajorAxis, getSemiMinorAxis, getSinphi0, getSquaredEccentricity, getUnits, isConformal, isEqualArea, isSpherical, setFalseEasting, setScale
 
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 class org.deegree.commons.tom.Reference
getId, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.cs.projections.IProjection
doInverseProjection, doProjection, getCosphi0, getEccentricity, getEllipsoid, getFalseEasting, getFalseNorthing, getImplementationName, getNaturalOrigin, getPrimeMeridian, getProjectionLatitude, getProjectionLongitude, getScale, getScaleFactor, getSemiMajorAxis, getSemiMinorAxis, getSinphi0, getSquaredEccentricity, getUnits, isConformal, isEqualArea, isSpherical, setFalseEasting, setScale
 
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

TransverseMercatorRef

public TransverseMercatorRef(ReferenceResolver resolver,
                             String uri,
                             String baseURL)
Creates a reference to TransverseMercator

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)
Method Detail

getRowFromNearestParallel

public int getRowFromNearestParallel(double latitude)
Specified by:
getRowFromNearestParallel in interface ITransverseMercator
Parameters:
latitude - to get the nearest paralles to.
Returns:
the nearest parallel in radians of given latitude

getZoneFromNearestMeridian

public int getZoneFromNearestMeridian(double longitude)
Description copied from interface: ITransverseMercator
the utm zone from a given meridian

Specified by:
getZoneFromNearestMeridian in interface ITransverseMercator
Parameters:
longitude - in radians
Returns:
the utm zone.

getHemisphere

public boolean getHemisphere()
Specified by:
getHemisphere in interface ITransverseMercator
Returns:
the true if defined on the northern hemisphere.

equals

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

getReferencedObject

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

Overrides:
getReferencedObject in class Reference<IProjection>
Returns:
the referenced Object instance
Throws:
ReferenceResolvingException - if the reference cannot be resolved


Copyright © 2011. All Rights Reserved.