|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.geoloc.ProjectionImpl
ucar.unidata.geoloc.projection.proj4.TransverseMercatorProjection
public class TransverseMercatorProjection
Transverse Mercator Projection algorithm is taken from the USGS PROJ package.
Field Summary |
---|
Fields inherited from class ucar.unidata.geoloc.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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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(Object proj)
Returns true if this represents the same Projection as proj. |
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(String[] args)
|
String |
paramsToString()
Get a string representation of the projection parameters |
Point2D.Double |
project(double lplam,
double lpphi,
Point2D.Double xy)
|
Point2D.Double |
projectInverse(double x,
double y,
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)
|
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl |
---|
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, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransverseMercatorProjection()
public TransverseMercatorProjection(Earth ellipsoid, double lon_0_deg, double lat_0_deg, double k, double falseEast, double falseNorth)
Method Detail |
---|
public Object clone()
ProjectionImpl
clone
in class ProjectionImpl
public boolean isRectilinear()
public void initialize()
public int getRowFromNearestParallel(double latitude)
public int getZoneFromNearestMeridian(double longitude)
public void setUTMZone(int zone)
public Point2D.Double project(double lplam, double lpphi, Point2D.Double xy)
public Point2D.Double projectInverse(double x, double y, Point2D.Double out)
public boolean hasInverse()
public String getProjectionTypeLabel()
ProjectionImpl
getProjectionTypeLabel
in class ProjectionImpl
public ProjectionImpl constructCopy()
ProjectionImpl
constructCopy
in class ProjectionImpl
public String paramsToString()
ProjectionImpl
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl destPoint)
ProjectionImpl
latLonToProj
in interface Projection
latLonToProj
in class ProjectionImpl
latLon
- convert from these lat, lon coordinatesdestPoint
- the object to write to
public LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
ProjectionImpl
projToLatLon
in interface Projection
projToLatLon
in class ProjectionImpl
world
- convert from these projection coordinatesresult
- the object to write to
public boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
ProjectionImpl
crossSeam
in interface Projection
crossSeam
in class ProjectionImpl
pt1
- the line goes between these two pointspt2
- the line goes between these two points
public boolean equals(Object proj)
ProjectionImpl
equals
in interface Projection
equals
in class ProjectionImpl
proj
- projection in question
public int hashCode()
hashCode
in class Object
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |