|
|||||||||
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.Orthomorphic
mccombe.mapping.NZMG
public class NZMG
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mccombe.mapping.Orthomorphic |
---|
Orthomorphic.Complex |
Field Summary |
---|
Fields inherited from class mccombe.mapping.CoordinateSystem |
---|
locus, ref, sph |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class mccombe.mapping.Orthomorphic |
---|
a, 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 NZMG(Position p, Ellipsoid e, Datum d)
p
- Positione
- Ellipsoid to use with this instanced
- Datum to usepublic NZMG(ENPair point, Ellipsoid e, Datum d)
point
- ENPair containing the easting and northing valuese
- Ellipsoid to use with this instanced
- Datum to useMethod Detail |
---|
public 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 conversions
GridFormatException
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |