[Proj] NZGD2000 to NZGD49
AnthonyD at rocketmail.com
Wed May 17 01:15:21 EDT 2006
I think the problem is that NZ datums are not defined in PROJ (I found
the same was true of Australian datums). You will need to provide the
ellipsoid parameters for these datums instead. i.e. +a=6378388.0
+rf=297.0 for NZGD49 and +a=6378137.0 +rf=298.257222 for NZGD2000.
So, to convert from NZGD200 Lat/Lon to NZGD49 Lat/Lon try this:
cs2cs +proj=latlong +a=6378137.0 +rf=298.257222 +to +proj=latlong
+a=6378388.0 +rf=297.0 +nadgrids=nzgd2kgrid0005
--- Simon O'Malley <simonom at gmail.com> wrote:
> I am trying to test the datum shift (using nzgd2kgrid0005.gsb file)
> conversions between NZGD2000 and NZGD49(NZMG).
> I have downloaded the proj-datumgrid-1.3.zip file, and extracted
> under the nad directory.
> configured, make, and make install. However the gsb file does not get
> to /usr/local/share/proj
> I copied it across but postgis does not appear to use it i.e. my
> coordinates are not correct, as verified by the linz website and
> software that uses the grid file.
> I then tried to use cs2cs to validate it but all attempts at
> specifying the
> projections and datums gave me errors.
> I have tried multiple versions of:
> cs2cs +proj=latlong +datum=nzgd2000 +nadgrids=nzgd2kgrid0005 +to
> After setting PROJ_DEBUG I get:
> pj_open_lib(proj_def.dat): call
> fopen(/usr/local/share/proj/proj_def.dat) -
> Using from definition: proj=latlong datum=nzgd2000
> Rel. 4.4.9, 29 Oct 2004
> projection initialization failure
> cause: unknown elliptical parameter name
> program abnormally terminated
> Tried upper and lower case NZGD2000, NZGD49, NZMG, latlong, longlat,
> Do I have to add an ellipsoid to the projection definitions for
> The grid shift file does not appear to mentioned in any of the files
> /usr/local/share/proj is that normal?
> Some pointers would be appreciated.
> > _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Proj