mccombe.mapping
public class NZMG extends Orthomorphic
Orthomorphic.Complex
locus, 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, toEN
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
public 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()
CoordinateSystem
defaultEllipsoid
in class CoordinateSystem
public Datum defaultDatum()
CoordinateSystem
defaultDatum
in class CoordinateSystem
public double gridConvergence()
gridConvergence
in class Orthomorphic
public java.lang.String toString()
CoordinateSystem
toString
in class CoordinateSystem
public double cfi(int i)
cfi
in class Orthomorphic
public double cfl(int i)
cfl
in class Orthomorphic
public double n0()
n0
in class Orthomorphic
public double e0()
e0
in class Orthomorphic
public double phi0()
phi0
in class Orthomorphic
public double lamda0()
lamda0
in class Orthomorphic
public Orthomorphic.Complex cfb1(int i)
cfb1
in class Orthomorphic
public Orthomorphic.Complex cfb2(int i)
cfb2
in class Orthomorphic
public int cfilen()
cfilen
in class Orthomorphic
public int cfllen()
cfllen
in class Orthomorphic
public int cfblen()
cfblen
in class Orthomorphic