com.jhlabs.map.proj
Class TransverseMercatorProjection

java.lang.Object
  extended by com.jhlabs.map.proj.Projection
      extended by com.jhlabs.map.proj.CylindricalProjection
          extended by com.jhlabs.map.proj.TransverseMercatorProjection
All Implemented Interfaces:
Serializable, Cloneable

public class TransverseMercatorProjection
extends CylindricalProjection

Transverse Mercator Projection algorithm is taken from the USGS PROJ package.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jhlabs.map.proj.Projection
a, DTR, e, ellipsoid, EPS10, es, falseEasting, falseNorthing, fromMetres, geocentric, maxLatitude, maxLongitude, minLatitude, minLongitude, name, one_es, projectionLatitude, projectionLongitude, rone_es, RTD, scaleFactor, spherical, trueScaleLatitude
 
Constructor Summary
TransverseMercatorProjection()
           
TransverseMercatorProjection(Ellipsoid ellipsoid, double lon_0, double lat_0, double k, double x_0, double y_0)
          Set up a projection suitable for State Plane Coordinates.
 
Method Summary
 Object clone()
           
 int getRowFromNearestParallel(double latitude)
           
 int getZoneFromNearestMeridian(double longitude)
           
 boolean hasInverse()
          Returns true if this projection has an inverse
 void initialize()
          Initialize the projection.
 boolean isConformal()
          Returns true if this projection is conformal
 boolean isRectilinear()
          Returns true if lat/long lines form a rectangular grid for this projection.
 Point2D.Double project(double lplam, double lpphi, Point2D.Double xy)
          The method which actually does the projection.
 Point2D.Double projectInverse(double x, double y, Point2D.Double out)
          The method which actually does the inverse projection.
 void setUTMZone(int zone)
           
 String toString()
           
 
Methods inherited from class com.jhlabs.map.proj.Projection
binarySearchInverse, binarySearchInverse, getEllipsoid, getEPSGCode, getEquatorRadius, getFalseEasting, getFalseNorthing, getFromMetres, getMaxLatitude, getMaxLatitudeDegrees, getMaxLongitude, getMaxLongitudeDegrees, getMinLatitude, getMinLatitudeDegrees, getMinLongitude, getMinLongitudeDegrees, getName, getPROJ4Description, getProjectionDescription, getProjectionLatitude, getProjectionLatitudeDegrees, getProjectionLongitude, getProjectionLongitudeDegrees, getScaleFactor, getTrueScaleLatitude, getTrueScaleLatitudeDegrees, inside, inverseTransform, inverseTransform, inverseTransform, inverseTransformRadians, inverseTransformRadians, inverseTransformRadians, isEqualArea, main, parallelsAreParallel, setEllipsoid, setFalseEasting, setFalseNorthing, setFromMetres, setMaxLatitude, setMaxLongitude, setMaxLongitudeDegrees, setMinLatitude, setMinLongitude, setMinLongitudeDegrees, setName, setProjectionLatitude, setProjectionLatitudeDegrees, setProjectionLongitude, setProjectionLongitudeDegrees, setScaleFactor, setTrueScaleLatitude, setTrueScaleLatitudeDegrees, testBinarySearchInverse, transform, transform, transform, transform, transformRadians, transformRadians, transformRadians
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransverseMercatorProjection

public TransverseMercatorProjection()

TransverseMercatorProjection

public TransverseMercatorProjection(Ellipsoid ellipsoid,
                                    double lon_0,
                                    double lat_0,
                                    double k,
                                    double x_0,
                                    double y_0)
Set up a projection suitable for State Plane Coordinates.

Method Detail

clone

public Object clone()
Overrides:
clone in class Projection

initialize

public void initialize()
Description copied from class: Projection
Initialize the projection. This should be called after setting parameters and before using the projection. This is for performance reasons as initialization may be expensive.

Overrides:
initialize in class Projection

getRowFromNearestParallel

public int getRowFromNearestParallel(double latitude)

getZoneFromNearestMeridian

public int getZoneFromNearestMeridian(double longitude)

setUTMZone

public void setUTMZone(int zone)

project

public Point2D.Double project(double lplam,
                              double lpphi,
                              Point2D.Double xy)
Description copied from class: Projection
The method which actually does the projection. This should be overridden for all projections.

Overrides:
project in class Projection
Parameters:
lplam - Longitude in radians.
lpphi - Latitude in radians.
xy - The projected point.
Returns:
The projected point, identical to parameter dst.

projectInverse

public Point2D.Double projectInverse(double x,
                                     double y,
                                     Point2D.Double out)
Description copied from class: Projection
The method which actually does the inverse projection. This should be overridden for all projections.

Overrides:
projectInverse in class Projection

hasInverse

public boolean hasInverse()
Description copied from class: Projection
Returns true if this projection has an inverse

Overrides:
hasInverse in class Projection

isConformal

public boolean isConformal()
Description copied from class: Projection
Returns true if this projection is conformal

Overrides:
isConformal in class Projection

isRectilinear

public boolean isRectilinear()
Description copied from class: Projection
Returns true if lat/long lines form a rectangular grid for this projection. This is generally only the case for cylindrical projections, but not for oblique cylindrical projections.

Overrides:
isRectilinear in class CylindricalProjection

toString

public String toString()
Overrides:
toString in class CylindricalProjection


Copyright © 2011. All Rights Reserved.