<html>
  <head>

  </head>
  <body style="margin-left: 4px; font-variant: normal; line-height: normal; margin-right: 4px; font-size: 10pt; font-family: Dialog; margin-top: 4px; font-weight: normal; font-style: normal; margin-bottom: 1px">
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Hi Frank,</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Thanks, You're right, it is case sensitive and it now gives a result with +datum=WGS84.</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">But the result is wrong... </font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">The result is actually the same as without specifying the datum, so I guess the datum shift has not been performed...</font><br><font face="Dialog" size="2"></font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">$ 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</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">2864916.8 6160570.9</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">511905.895606922.76 0.00</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Without any datum : $ cs2cs +proj=nzmg +to +proj=utm +zone=60 +south</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">2864916.8 6160570.9</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">511905.89   5606922.76 0.00</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">The right answer (from LINZ) should be :</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">511924.6   5607118.0 </font>    </p>
<br>      <br>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">I even tried :</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">$ 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</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">2864916.8 6160570.9</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">511905.895606922.76 0.00</font>    </p>
<br>      <br>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">So what's wrong ?...</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Please...</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Thanks.</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Dialog" size="2">Claire</font>    </p>
<br>      <br><br><br><br><br><br>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      >>> Frank Warmerdam <warmerdam@pobox.com> 3/29/2011 10:30 AM >>><br>On 11-03-28 04:58 PM, Claire Castellazzi wrote:<br><br>> I still have a problem :<br>><br>>  > cs2cs +proj=nzmg +datum=nzgd49 +lat_0=-41.0 +lon_0=173.0 +x_0=2510000<br>> +y_0=6023150 +a=6378388 +rf=297 +no_defs +nadgrids=nzgd2kgrid0005.gsb<br>> +to_meter=1.0 +to +proj=utm +zone=60 +south +datum=wgs84<br>><br>><br>> Using to definition: proj=utm zone=60 south datum=wgs84<br><br>Claire,<br><br>I believe the problem is that PROJ.4 names are case sensitive, and<br>WGS84 needs to be in capitals.  Try +proj=utm +zone=60 +south +datum=WGS84<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com<br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Programmer for Rent<br><br>_______________________________________________<br>Proj mailing list<br>Proj@lists.maptools.org<br><a href="http://lists.maptools.org/mailman/listinfo/proj">http://lists.maptools.org/mailman/listinfo/proj</a><br>
    </p>
  <BR>

    <div>
      Please consider the environment before printing this email.<br><br>NIWA 
      is the trading name of the National Institute of Water & Atmospheric 
      Research Ltd.
    </div>
  </BODY></HTML>