mccombe.mapping
public class UTM extends TransverseMercator
northernHemisphere, zone
locus, ref, sph
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
gridConvergence, pointScaleFactor, toEN
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
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.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 instanceGridFormatException
- 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