gistoolkit.projection
Class AlbersEqualAreaProjection

java.lang.Object
  extended bygistoolkit.projection.SimpleProjection
      extended bygistoolkit.projection.AlbersEqualAreaProjection
All Implemented Interfaces:
EditableProjection, EllipsoidProjection, Projection

public class AlbersEqualAreaProjection
extends SimpleProjection
implements EditableProjection

Projects to the Albers Equal Area Projection. Having virtually no data to go on with this projection, I just copied the data from the Proj4 C++ code base with a great deal of alteration to move it to java. I know little or nothing about this projection.


Field Summary
 
Fields inherited from class gistoolkit.projection.SimpleProjection
FORTPI, HALFPI, PI, TWOPI
 
Constructor Summary
AlbersEqualAreaProjection()
          Creates new AlbersEqualArea
 
Method Summary
 java.lang.Object clone()
          clone this projection
protected  void doSetup()
          setup the projection
 ProjectionPanel getEditPanel()
          Get the panel used to edit this projection
 double getLatitude1()
          return the first latitude where the distortion is zero
 double getLatitude2()
          return the first latitude where the distortion is zero
 Node getNode()
          Return the configuration information for this projection
 java.lang.String getProjectionName()
          Return the name of this projeciton
 void projectBackward(Point inPoint)
          Project the data in the reverse direction
 void projectForward(Point inPoint)
          Project the data in the forward direction
 void setLatitude1(double inLat1)
          Set the first latitude where the distortion is zero
 void setLatitude2(double inLat2)
          Set the first latitude where the distortion is zero
 void setNode(Node inNode)
          Setup this projection using the configuration information in the node
 
Methods inherited from class gistoolkit.projection.SimpleProjection
aacos, aasin, aatan2, asqrt, getEasting, getEccentricity, getEllipsoid, getESquared, getLatOragin, getLonOragin, getNorthing, getUnitOfMeasure, hypot, pj_enfn, pj_msfn, pj_phi2, pj_qsfn, pj_tsfn, setEasting, setEllipsoid, setEnvelope, setLatOragin, setLonOragin, setNorthing, setup, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gistoolkit.projection.Projection
getUnitOfMeasure, setEnvelope
 

Constructor Detail

AlbersEqualAreaProjection

public AlbersEqualAreaProjection()
Creates new AlbersEqualArea

Method Detail

getProjectionName

public java.lang.String getProjectionName()
Return the name of this projeciton

Specified by:
getProjectionName in interface Projection
Specified by:
getProjectionName in class SimpleProjection

getLatitude1

public double getLatitude1()
return the first latitude where the distortion is zero


setLatitude1

public void setLatitude1(double inLat1)
Set the first latitude where the distortion is zero


getLatitude2

public double getLatitude2()
return the first latitude where the distortion is zero


setLatitude2

public void setLatitude2(double inLat2)
Set the first latitude where the distortion is zero


doSetup

protected void doSetup()
                throws java.lang.Exception
setup the projection

Overrides:
doSetup in class SimpleProjection
Throws:
java.lang.Exception

projectForward

public void projectForward(Point inPoint)
                    throws java.lang.Exception
Project the data in the forward direction

Specified by:
projectForward in interface Projection
Specified by:
projectForward in class SimpleProjection
Throws:
java.lang.Exception

projectBackward

public void projectBackward(Point inPoint)
                     throws java.lang.Exception
Project the data in the reverse direction

Specified by:
projectBackward in interface Projection
Specified by:
projectBackward in class SimpleProjection
Throws:
java.lang.Exception

getEditPanel

public ProjectionPanel getEditPanel()
Get the panel used to edit this projection

Specified by:
getEditPanel in interface EditableProjection

getNode

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

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

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 SimpleProjection
Throws:
java.lang.Exception

clone

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

Specified by:
clone in interface Projection
Specified by:
clone in class SimpleProjection