public class NZMG extends Orthomorphic
Orthomorphic.Complexlocus, ref, sph| Constructor and Description |
|---|
NZMG(ENPair point,
Ellipsoid e,
Datum d)
Create a new NZMG point for a specific pair of Eastings and Northings, Ellipsoid and Datum.
|
NZMG(Position p,
Ellipsoid e,
Datum d)
Create a new NZMG point for a specific Position, Ellipsoid and Datum.
|
| Modifier and Type | Method and Description |
|---|---|
Orthomorphic.Complex |
cfb1(int i) |
Orthomorphic.Complex |
cfb2(int i) |
int |
cfblen() |
double |
cfi(int i) |
int |
cfilen() |
double |
cfl(int i) |
int |
cfllen() |
Datum |
defaultDatum()
Get the defaul Datum for an instance of CoordinateSystem.
|
Ellipsoid |
defaultEllipsoid()
The default Ellipsoid used by instances of this CoordinateSystem
For example, a CoordinateSystem of type OSGB has the AirySphere as its default Ellipsoid
|
double |
e0() |
protected static ENPair |
getEN(java.lang.String gridref)
Parse NZMG coordinates into easting and northing distances
|
double |
gridConvergence()
Calculate the Grid Convergence for the current location.
|
double |
lamda0() |
static NZMG |
makePoint(java.lang.String gridref,
Ellipsoid e,
Datum d)
Static factory method to create an instance of NZMG from a grid reference String
|
double |
n0() |
double |
phi0() |
java.lang.String |
toString()
Provide a String representing the position in a correct format for the
CoordinateSystem
|
a, toENgetDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongStringpublic NZMG(Position p, Ellipsoid e, Datum d)
p - Positione - Ellipsoid to use with this instanced - Datum to usepublic static NZMG makePoint(java.lang.String gridref, Ellipsoid e, Datum d) throws GridFormatException
gridref - A grid reference of the form "157203 mE 6752091 mN " where the values are easting and
northing distances in me - Ellipsoid to use in conversionsd - Datum to use in conversionsGridFormatException - thrown in case of format error in the grid referenceprotected static ENPair getEN(java.lang.String gridref) throws GridFormatException
gridref - A pair of NZMG coordinates (e.g. "2487100.638 mE 6751049.719 mN), specified in m.GridFormatException - Invalid coordinate format results in a GridFormatException being thrownpublic Ellipsoid defaultEllipsoid()
CoordinateSystemdefaultEllipsoid in class CoordinateSystempublic Datum defaultDatum()
CoordinateSystemdefaultDatum in class CoordinateSystempublic double gridConvergence()
gridConvergence in class Orthomorphicpublic java.lang.String toString()
CoordinateSystemtoString in class CoordinateSystempublic double cfi(int i)
cfi in class Orthomorphicpublic double cfl(int i)
cfl in class Orthomorphicpublic double n0()
n0 in class Orthomorphicpublic double e0()
e0 in class Orthomorphicpublic double phi0()
phi0 in class Orthomorphicpublic double lamda0()
lamda0 in class Orthomorphicpublic Orthomorphic.Complex cfb1(int i)
cfb1 in class Orthomorphicpublic Orthomorphic.Complex cfb2(int i)
cfb2 in class Orthomorphicpublic int cfilen()
cfilen in class Orthomorphicpublic int cfllen()
cfllen in class Orthomorphicpublic int cfblen()
cfblen in class Orthomorphic