org.cresques.geo
Class UtmZone
java.lang.Object
org.cresques.geo.Projection
org.cresques.geo.UtmZone
- All Implemented Interfaces:
- IProjection
- public class UtmZone
- extends Projection
Method Summary |
java.awt.geom.Point2D |
createPoint(double x,
double y)
|
void |
drawGrid(java.awt.Graphics2D g,
ViewPortData vp)
|
UtmPoint |
fromGeo(GeoPoint gPt,
UtmPoint uPt,
int[] ai)
|
UtmPoint |
fromGeo(GeoPoint gPt,
UtmPoint uPt,
UtmZone proj)
|
java.awt.geom.Point2D |
fromGeo(java.awt.geom.Point2D gPt,
java.awt.geom.Point2D uPt)
|
java.lang.String |
getAbrev()
|
static UtmZone |
getProjection(Ellipsoid eli,
int zone,
int hemisphere)
|
static IProjection |
getProjectionByName(IDatum eli,
java.lang.String name)
|
double |
getScale(double minX,
double maxX,
double width,
double dpi)
|
java.awt.geom.Point2D |
toGeo(java.awt.geom.Point2D uPt)
|
GeoPoint |
toGeo(UtmPoint uPt,
GeoPoint gPt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Zone
public int Zone
Hemisphere
public int Hemisphere
H
public double H
UtmZone
public UtmZone(Ellipsoid eli,
int zone,
int hemisphere,
double h)
getAbrev
public java.lang.String getAbrev()
- Specified by:
getAbrev
in interface IProjection
- Specified by:
getAbrev
in class Projection
getProjection
public static UtmZone getProjection(Ellipsoid eli,
int zone,
int hemisphere)
getProjectionByName
public static IProjection getProjectionByName(IDatum eli,
java.lang.String name)
createPoint
public java.awt.geom.Point2D createPoint(double x,
double y)
- Specified by:
createPoint
in interface IProjection
- Specified by:
createPoint
in class Projection
toGeo
public java.awt.geom.Point2D toGeo(java.awt.geom.Point2D uPt)
- Specified by:
toGeo
in interface IProjection
- Specified by:
toGeo
in class Projection
- Parameters:
uPt
-
- Returns:
toGeo
public GeoPoint toGeo(UtmPoint uPt,
GeoPoint gPt)
- Parameters:
uPt
- gPt
-
- Returns:
fromGeo
public java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt,
java.awt.geom.Point2D uPt)
- Specified by:
fromGeo
in interface IProjection
- Specified by:
fromGeo
in class Projection
- Parameters:
gPt
- uPt
-
- Returns:
fromGeo
public UtmPoint fromGeo(GeoPoint gPt,
UtmPoint uPt,
UtmZone proj)
- Parameters:
gPt
- uPt
- proj
-
- Returns:
fromGeo
public UtmPoint fromGeo(GeoPoint gPt,
UtmPoint uPt,
int[] ai)
- Parameters:
gPt
- uPt
- ai
-
- Returns:
drawGrid
public void drawGrid(java.awt.Graphics2D g,
ViewPortData vp)
- Specified by:
drawGrid
in interface IProjection
- Specified by:
drawGrid
in class Projection
getScale
public double getScale(double minX,
double maxX,
double width,
double dpi)