I've been having some difficulties converting NZTM2000, a variant of the Transverse Mercator projection used in New Zealand (), to WSG84 latitude/longitude coordinates.
The specifications for NZTM2000 state that the TM is set up with the following parameters:
- Origin latitude: ° 00' 00" South
- Origin longitude / central meridian:173° 00' 00" East
- False Northing:10,000,000 meters North
- False Easting:1,600,000 meters East
- Central meridian scale factor:0.9996
I attempted to apply them in S3:
var projection = d3.geo.transverseMercator()
.rotate([origin_lat, origin_lng])
.scale(scale_factor)
.center([false_northing, false_easting])
(as well as other methods).
I was working with a small dataset containing known WGS84 values:
NZTM2000 WSG84
--------------------- -------------------------------
Northing Easting Latitude Longitude
5771280.5 1900560.5 38 09 22.691 S 176 25 48.538 E
5771280.5 1900570.5 38 09 22.679 S 176 25 48.948 E
5771280.5 1900571.5 38 09 22.678 S 176 25 48.989 E
5771280.5 1900572.5 38 09 22.677 S 176 25 49.030 E
Any assistance would be greatly appreciated.
Many thanks