I have it working for KML output like this:<br><br><b>projection = dataset.GetProjection()</b><br><br><b>in_projection = osr.SpatialReference()<br>in_projection.ImportFromWkt(projection)</b><br><b><br>out_projection = osr.SpatialReference()<br>
out_projection.ImportFromEPSG(4326)<br><br>coortran = osr.CoordinateTransformation(in_projection, out_projection)<br><br>(x_out, y_out, z_out) = coortran.TransformPoint(x_coor, y_coor)</b><br><br>Even though there is no z input in the transform, it will bail with &quot;ValueError: too many values to unpack&quot; if you don&#39;t include it.  <br>
<br>- Jamie<br><br><div class="gmail_quote">On Fri, Oct 23, 2009 at 1:57 PM, Mano Marks <span dir="ltr">&lt;<a href="mailto:mmarks@google.com">mmarks@google.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Developing in Python, I&#39;ve tried a number of inputs for<br>
TransformPoint, and can&#39;t seem to figure out how to get this right.<br>
And web searches reveal several people asking similar questions<br>
without an answer. Anyone?<br>
<br>
Here&#39;s the error I get:<br>
<br>
NotImplementedError: Wrong number of arguments for overloaded function &#39;Coordina<br>
teTransformation_TransformPoint&#39;.<br>
  Possible C/C++ prototypes are:<br>
    TransformPoint(double [3])<br>
    TransformPoint(double [3],double,double,double)<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>