[gdal-dev] Proper input for TransformPoint
jaadfoo at gmail.com
Fri Oct 23 17:20:38 EDT 2009
I have it working for KML output like this:
*projection = dataset.GetProjection()*
*in_projection = osr.SpatialReference()
out_projection = osr.SpatialReference()
coortran = osr.CoordinateTransformation(in_projection, out_projection)
(x_out, y_out, z_out) = coortran.TransformPoint(x_coor, y_coor)*
Even though there is no z input in the transform, it will bail with
"ValueError: too many values to unpack" if you don't include it.
On Fri, Oct 23, 2009 at 1:57 PM, Mano Marks <mmarks at google.com> wrote:
> Developing in Python, I've tried a number of inputs for
> TransformPoint, and can't seem to figure out how to get this right.
> And web searches reveal several people asking similar questions
> without an answer. Anyone?
> Here's the error I get:
> NotImplementedError: Wrong number of arguments for overloaded function
> Possible C/C++ prototypes are:
> TransformPoint(double )
> TransformPoint(double ,double,double,double)
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev