[Proj] New Zealand Map grid projection

Claire Castellazzi c.castellazzi at niwa.co.nz
Mon Mar 28 14:50:36 PDT 2011


Hi Frank, 

Thanks, You're right, it is case sensitive and it now gives a result with +datum=WGS84. 
But the result is wrong...  
The result is actually the same as without specifying the datum, so I guess the datum shift has not been performed...
 
$ cs2cs +proj=nzmg +datum=nzgd49 +lat_0=-41.0 +lon_0=173.0  +x_0=2510000 +y_0=6023150 +a=6378388 +rf=297 +no_defs +nadgrids=nzgd2kgrid0005.gsb +to_meter=1.0  +to +proj=utm +zone=60 +south +datum=WGS84 
2864916.8 6160570.9 
511905.895606922.76 0.00 

Without any datum : $ cs2cs +proj=nzmg +to +proj=utm +zone=60 +south 
2864916.8 6160570.9 
511905.89   5606922.76 0.00 

The right answer (from LINZ) should be : 
511924.6   5607118.0  


I even tried : 

$ cs2cs +proj=nzmg +datum=nzgd49 +lat_0=-41.0 +lon_0=173.0  +x_0=2510000 +y_0=6023150 +a=6378388 +rf=297 +no_defs +nadgrids=nzgd2kgrid0005.gsb +to_meter=1.0  +to +proj=utm +zone=60 +south +datum=WGS84 +lat_0=0.0 +lon_0=177.0 +x_0=500000 +y_0=10000000 +a=6378137 +rf=298.257223563 +to_meters=1.0 
2864916.8 6160570.9 
511905.895606922.76 0.00 


So what's wrong ?... 
Please... 

Thanks. 
Claire 








>>> Frank Warmerdam <warmerdam at pobox.com> 3/29/2011 10:30 AM >>>
On 11-03-28 04:58 PM, Claire Castellazzi wrote:

> I still have a problem :
>
>  > cs2cs +proj=nzmg +datum=nzgd49 +lat_0=-41.0 +lon_0=173.0 +x_0=2510000
> +y_0=6023150 +a=6378388 +rf=297 +no_defs +nadgrids=nzgd2kgrid0005.gsb
> +to_meter=1.0 +to +proj=utm +zone=60 +south +datum=wgs84
>
>
> Using to definition: proj=utm zone=60 south datum=wgs84

Claire,

I believe the problem is that PROJ.4 names are case sensitive, and
WGS84 needs to be in capitals.  Try +proj=utm +zone=60 +south +datum=WGS84

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Proj mailing list
Proj at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Please consider the environment before printing this email.

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20110329/6f55aba5/attachment.html>


More information about the Proj mailing list