@Immutable public class UtmProjection extends AbstractProjection
| Modifier and Type | Field and Description |
|---|---|
static String |
GRID_MAPPING_NAME |
static String |
UTM_ZONE1 |
static String |
UTM_ZONE2 |
| Constructor and Description |
|---|
UtmProjection()
Constructor with default parameters
|
UtmProjection(double a,
double f,
int zone,
boolean isNorth)
Construct a Universal Transverse Mercator Projection.
|
UtmProjection(int zone,
boolean isNorth)
Constructor with default WGS 84 ellipsoid.
|
| Modifier and Type | Method and Description |
|---|---|
Projection |
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 o) |
double |
getCentralMeridian() |
String |
getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection
|
int |
getZone()
Get the zone number = [1,60]
|
int |
hashCode() |
boolean |
isNorth()
Get whether in North or South Hemisphere.
|
ProjectionPoint |
latLonToProj(LatLonPoint latLon)
Convert a LatLonPoint to projection coordinates.
|
String |
paramsToString()
Get the parameters as a String
|
LatLonPoint |
projToLatLon(ProjectionPoint world)
Convert projection coordinates to a LatLonPoint.
|
addParameter, addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getHeader, getMinOrMaxLon, getName, getProjectionAttributes, getProjectionParameters, isLatLon, latLonToProjBB, projToLatLonBB, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitlatLonToProj, projToLatLonpublic static final String GRID_MAPPING_NAME
public static final String UTM_ZONE1
public static final String UTM_ZONE2
public UtmProjection()
public UtmProjection(int zone,
boolean isNorth)
zone - the UTM zone number (1-60)isNorth - true if the UTM coordinate is in the northern hemispherepublic UtmProjection(double a,
double f,
int zone,
boolean isNorth)
a - the semi-major axis (meters) for the ellipsoidf - the inverse flattening for the ellipsoidzone - the UTM zone number (1-60)isNorth - true if the UTM coordinate is in the northern hemispherepublic Projection constructCopy()
AbstractProjectionconstructCopy in class AbstractProjectionpublic int getZone()
public boolean isNorth()
public String getProjectionTypeLabel()
getProjectionTypeLabel in class AbstractProjectionpublic double getCentralMeridian()
public String paramsToString()
paramsToString in interface ProjectionparamsToString in class AbstractProjectionpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
pt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic ProjectionPoint latLonToProj(LatLonPoint latLon)
Projectionpublic LatLonPoint projToLatLon(ProjectionPoint world)
Projection