I want to convert NEW ZEALAND MAP GRID
coordinates i.e. Northing
and Easting
into WGS84
coordinates i.e. Latitude
and Longitude
.
I have searched on internet but there is no proper explanation of how to do this, or an online calculator to do this.
My final goal is to write a program in C#
or JAVA
, which will convert NZMG
coordinates into WGS84
coordinates.
Proj4j provides this functionality: It is one of the few universal coordinate conversions libs. http://trac.osgeo.org/proj4j/
Then you have to find the proj4 string that defines the new zeal and datum description:
Depending if you need th eold or the new grid, you need the new zealand datum shift grids,+ which are included in proj4.
As a first step find exactly the name of the datum that you need: NZGD49 or NZGD2000 ?