|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmccombe.mapping.CoordinateSystem
mccombe.mapping.Projection
mccombe.mapping.TransverseMercator
mccombe.mapping.UTM
public class UTM
The Universal Transverse Mercator coordinate system
Field Summary |
---|
Fields inherited from class mccombe.mapping.TransverseMercator |
---|
northernHemisphere, zone |
Fields inherited from class mccombe.mapping.CoordinateSystem |
---|
locus, ref, sph |
Constructor Summary | |
---|---|
UTM(ENPair en)
Deprecated. |
|
UTM(ENPair en,
int z,
Ellipsoid sphere,
Datum datum)
Create a new UTM object from easting and northing values, zone number, Ellipsoid and Datum |
|
UTM(ENPair en,
int z,
Ellipsoid sphere,
Datum datum,
boolean hemisphere)
Create a new UTM object from easting and northing values, zone number, Ellipsoid and Datum |
|
UTM(Position p,
Ellipsoid e,
Datum d)
Create a new instance from Position, Ellipsoid and Datum. |
|
UTM(Position p,
int z,
Ellipsoid e,
Datum d)
Create a new instance of UTM from Position, UTM zone, Ellipsoid and Datum. |
Method Summary | |
---|---|
Datum |
defaultDatum()
Get the default datum for this type of CoordinateSystem |
Ellipsoid |
defaultEllipsoid()
Get the default Ellipsoid for this CoordinateSystem |
double |
e0()
e0() defines the "false easting" distance of the projection. |
double |
f0()
The scale factor on the Central Meridian. |
boolean |
getNorthernHemisphere()
Check if this point is in the northern hemisphere |
int |
getZone()
Get the zone number of this point |
static int |
getZone(double lon)
A static method to calculate the correct zone number for a specified longitude. |
double |
lamda0()
lamda0() defines the longitude (in radians) of the true origin also known as the "Central Meridian". |
static UTM |
makePoint(java.lang.String gridRef,
Ellipsoid e,
Datum d)
Static factory method to create a UTM instance from a grid reference String |
double |
n0()
n0() defines the "false northing" distance of the projection. |
double |
phi0()
phi0() defines the latitude of the true origin of the projection. |
java.lang.String |
toString()
Provide a String representation of this UTM point in UTM coordinates |
Methods inherited from class mccombe.mapping.TransverseMercator |
---|
gridConvergence, pointScaleFactor, toEN |
Methods inherited from class mccombe.mapping.CoordinateSystem |
---|
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UTM(Position p, Ellipsoid e, Datum d)
p
- Positione
- Ellipsoid to used
- Datum to usepublic UTM(Position p, int z, Ellipsoid e, Datum d)
p
- Positionz
- The UTM zone numbere
- Ellipsoid to used
- The Datum for this pointpublic UTM(ENPair en, int z, Ellipsoid sphere, Datum datum, boolean hemisphere)
en
- Easting and northing values (m)z
- Zone number (0-59)sphere
- Ellipsoid for this pointdatum
- Datu for this pointhemisphere
- - true if point is in the NOrthern Hemispherepublic UTM(ENPair en, int z, Ellipsoid sphere, Datum datum)
en
- Easting and northing values (m)z
- Zone number (0-59)sphere
- Ellipsoid for this pointdatum
- Datu for this point@Deprecated public UTM(ENPair en)
en
- Easting and northing values (m). Zone number is assumed to be 0.Method Detail |
---|
public static UTM makePoint(java.lang.String gridRef, Ellipsoid e, Datum d) throws GridFormatException
gridRef
- Grid reference String e.g. "32T 31577 202576"e
- Ellipsoid for this instanced
- Datum for this instance
GridFormatException
- if the grid rference String is invalidpublic Datum defaultDatum()
defaultDatum
in class CoordinateSystem
public Ellipsoid defaultEllipsoid()
defaultEllipsoid
in class CoordinateSystem
public java.lang.String toString()
toString
in class CoordinateSystem
public static int getZone(double lon)
lon
- Longitude (degrees)
public int getZone()
public boolean getNorthernHemisphere()
public double f0()
f0
in class TransverseMercator
public double e0()
e0
in class TransverseMercator
public double n0()
n0
in class TransverseMercator
public double phi0()
phi0
in class TransverseMercator
public double lamda0()
lamda0
in class TransverseMercator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |