[gdal-dev] ReadRaster python bindings and argumen types
Jose Gomez-Dans
jgomezdans at gmail.com
Tue Oct 11 13:49:18 EDT 2011
Hi,
I have installed GDAL 1.8.1 to use the python bindings. I note that if I
pass a slice of an array to ReadRaster for the (x,y) pixel location, I get a
TypeError:
TypeError: in method 'Dataset_ReadRaster1', argument 2 of type 'int'
If I surround the offending slice by int( x ) and int(y), it works fine.
Somehow, I think the wrapper (ReadRaster1) should also take 1-element slices
which are integers.
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111011/5c6ae533/attachment.html
More information about the gdal-dev
mailing list