Package uk.co.mccombe.mapping
Class NZTM2000
java.lang.Object
uk.co.mccombe.mapping.CoordinateSystem
uk.co.mccombe.mapping.Projection
uk.co.mccombe.mapping.TransverseMercator
uk.co.mccombe.mapping.NZTM2000
-
Field Summary
Fields inherited from class uk.co.mccombe.mapping.TransverseMercator
northernHemisphere, zoneFields inherited from class uk.co.mccombe.mapping.CoordinateSystem
locus, ref, sph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaul Datum for an instance of CoordinateSystem.Define the default Ellipsoid for this systemdoublee0()False Eastimg (metres)doublef0()Define scale factorprotected static ENPairParse NZMG coordinates into easting and northing distancesdoublelamda0()The central meridianstatic NZTM2000Static factory method to create an instance of NZMG from a grid reference Stringdoublen0()Define false northingdoublephi0()Define latitude of true origintoString()Provide a String representing the position in a correct format for the CoordinateSystemMethods inherited from class uk.co.mccombe.mapping.TransverseMercator
gridConvergence, pointScaleFactor, toENMethods inherited from class uk.co.mccombe.mapping.CoordinateSystem
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
-
Constructor Details
-
NZTM2000
-
NZTM2000
-
-
Method Details
-
makePoint
Static factory method to create an instance of NZMG from a grid reference String- Parameters:
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- Returns:
- A new LambertI instance
- Throws:
GridFormatException- thrown in case of format error in the grid reference
-
getEN
Parse NZMG coordinates into easting and northing distances- Parameters:
gridref- A pair of NZMG coordinates (e.g. "2487100.638 mE 6751049.719 mN), specified in m.- Returns:
- Easting and Northing distances (m)
- Throws:
GridFormatException- Invalid coordinate format results in a GridFormatException being thrown
-
f0
public double f0()Define scale factor- Specified by:
f0in classTransverseMercator- Returns:
- Scale factor at central meridian
-
phi0
public double phi0()Define latitude of true origin- Specified by:
phi0in classTransverseMercator- Returns:
- Latitude of true origin (degrees)
-
n0
public double n0()Define false northing- Specified by:
n0in classTransverseMercator- Returns:
- False northing value (metres)
-
e0
public double e0()False Eastimg (metres)- Specified by:
e0in classTransverseMercator- Returns:
- False easting value (metres)
-
lamda0
public double lamda0()The central meridian- Specified by:
lamda0in classTransverseMercator- Returns:
- The central meridian (radians)
-
defaultEllipsoid
Define the default Ellipsoid for this system- Specified by:
defaultEllipsoidin classCoordinateSystem- Returns:
- Ellipsoid.GRS80
-
defaultDatum
Description copied from class:CoordinateSystemGet the defaul Datum for an instance of CoordinateSystem. For example, instances of OSGB usually use the OSGB 1936 datum.- Specified by:
defaultDatumin classCoordinateSystem- Returns:
- The default Datum used by this instance of CoordinateSystem
-
toString
Description copied from class:CoordinateSystemProvide a String representing the position in a correct format for the CoordinateSystem- Specified by:
toStringin classCoordinateSystem- Returns:
- String
-