gistoolkit.projection
Class UniversalTransverseMercatorProjection

java.lang.Object
  extended bygistoolkit.projection.TransversMercatorProjection
      extended bygistoolkit.projection.UniversalTransverseMercatorProjection
All Implemented Interfaces:
EditableProjection, EllipsoidProjection, Projection

public class UniversalTransverseMercatorProjection
extends TransversMercatorProjection
implements EditableProjection

A projection used for converting from a WGS84 to UTM in a particular zone. The default zone is 14 which lands somewhere in the central USA. Hay, I live here.


Constructor Summary
UniversalTransverseMercatorProjection()
          Creates new UniversalTransverseMercatorProjection
 
Method Summary
 java.lang.Object clone()
          clone this object
 ProjectionPanel getEditPanel()
          return the panel needed to edit this projection
 boolean getFollowMap()
          Return true if the projection follows the map, false if it does not
 Node getNode()
          Return the configuration information for this projection
 java.lang.String getProjectionName()
          return the name of the projection
 int getUTMZone(double inlat, double inlon)
          Retrieve the UTM zone of interest.
 int getZone()
           
 void setEnvelope(Envelope inEnvelope)
          Set the Envelope of the current map.
 void setFollowMap(boolean inFollowMap)
          Set the projection to follow the center of the map
 void setNode(Node inNode)
          Setup this projection using the configuration information in the node
 void setZone(int inZone)
           
 java.lang.String toString()
          Display the type of projection
 
Methods inherited from class gistoolkit.projection.TransversMercatorProjection
altTransformBackward, altTransformForward, forwardM, getCentralScale, getCoefficients, getEasting, getEllipsoid, getLatOragin, getLonOragin, getNorthing, getUnitOfMeasure, main, projectBackward, projectForward, reverseM, setCentralScale, setEasting, setEllipsoid, setLatOragin, setLonOragin, setNorthing
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gistoolkit.projection.Projection
getUnitOfMeasure, projectBackward, projectForward
 

Constructor Detail

UniversalTransverseMercatorProjection

public UniversalTransverseMercatorProjection()
Creates new UniversalTransverseMercatorProjection

Method Detail

getUTMZone

public int getUTMZone(double inlat,
                      double inlon)
               throws java.lang.Exception
Retrieve the UTM zone of interest.

Throws:
java.lang.Exception

getZone

public int getZone()

setZone

public void setZone(int inZone)
             throws java.lang.Exception
Throws:
java.lang.Exception

getNode

public Node getNode()
Return the configuration information for this projection

Specified by:
getNode in interface Projection
Overrides:
getNode in class TransversMercatorProjection

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Setup this projection using the configuration information in the node

Specified by:
setNode in interface Projection
Overrides:
setNode in class TransversMercatorProjection
Throws:
java.lang.Exception

getProjectionName

public java.lang.String getProjectionName()
return the name of the projection

Specified by:
getProjectionName in interface Projection
Overrides:
getProjectionName in class TransversMercatorProjection

getFollowMap

public boolean getFollowMap()
Return true if the projection follows the map, false if it does not


setFollowMap

public void setFollowMap(boolean inFollowMap)
Set the projection to follow the center of the map


setEnvelope

public void setEnvelope(Envelope inEnvelope)
                 throws java.lang.Exception
Set the Envelope of the current map. They are not reverse projected.

Specified by:
setEnvelope in interface Projection
Overrides:
setEnvelope in class TransversMercatorProjection
Throws:
java.lang.Exception

getEditPanel

public ProjectionPanel getEditPanel()
return the panel needed to edit this projection

Specified by:
getEditPanel in interface EditableProjection

toString

public java.lang.String toString()
Display the type of projection


clone

public java.lang.Object clone()
clone this object

Specified by:
clone in interface Projection
Overrides:
clone in class TransversMercatorProjection