public class TransverseMercatorProjection extends ProjectionImpl
ATTR_NAME, atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE| Constructor and Description |
|---|
TransverseMercatorProjection() |
TransverseMercatorProjection(Earth ellipsoid,
double lon_0_deg,
double lat_0_deg,
double k,
double falseEast,
double falseNorth)
Set up a projection suitable for State Plane Coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone this projection
|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam".
|
boolean |
equals(java.lang.Object proj)
Returns true if this represents the same Projection as proj.
|
java.lang.String |
getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection.
|
int |
getRowFromNearestParallel(double latitude) |
int |
getZoneFromNearestMeridian(double longitude) |
int |
hashCode() |
boolean |
hasInverse() |
void |
initialize() |
boolean |
isRectilinear() |
ProjectionPoint |
latLonToProj(LatLonPoint latLon,
ProjectionPointImpl destPoint)
Convert a LatLonPoint to projection coordinates
|
static void |
main(java.lang.String[] args) |
java.lang.String |
paramsToString()
Get a string representation of the projection parameters
|
java.awt.geom.Point2D.Double |
project(double lplam,
double lpphi,
java.awt.geom.Point2D.Double xy) |
java.awt.geom.Point2D.Double |
projectInverse(double x,
double y,
java.awt.geom.Point2D.Double out) |
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
void |
setUTMZone(int zone) |
addParameter, addParameter, addParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setName, toStringpublic TransverseMercatorProjection()
public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth)
public java.lang.Object clone()
ProjectionImplclone in class ProjectionImplpublic boolean isRectilinear()
public void initialize()
public int getRowFromNearestParallel(double latitude)
public int getZoneFromNearestMeridian(double longitude)
public void setUTMZone(int zone)
public java.awt.geom.Point2D.Double project(double lplam,
double lpphi,
java.awt.geom.Point2D.Double xy)
public java.awt.geom.Point2D.Double projectInverse(double x,
double y,
java.awt.geom.Point2D.Double out)
public boolean hasInverse()
public java.lang.String getProjectionTypeLabel()
ProjectionImplgetProjectionTypeLabel in class ProjectionImplpublic ProjectionImpl constructCopy()
ProjectionImplconstructCopy in class ProjectionImplpublic java.lang.String paramsToString()
ProjectionImplparamsToString in interface ProjectionparamsToString in class ProjectionImplpublic ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl destPoint)
ProjectionImpllatLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesdestPoint - the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
ProjectionImplprojToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write topublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
ProjectionImplcrossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic boolean equals(java.lang.Object proj)
ProjectionImplequals in interface Projectionequals in class ProjectionImplproj - projection in questionpublic int hashCode()
hashCode in class java.lang.Objectpublic static void main(java.lang.String[] args)