[gdal-dev] ReadRaster python bindings and argumen types
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Oct 11 15:35:14 EDT 2011
Jose,
FYI, the ReadRaster function is optimized for reading chunks of image, not
individual pixels.
An array slice is essentially an array itself. But your error message says
different. Can you provide the offending lines of code?
On Tue, Oct 11, 2011 at 11:19 PM, Jose Gomez-Dans <jgomezdans at gmail.com>wrote:
> 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
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
Best regards,
Chaitanya kumar CH.
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111012/cf43e7a9/attachment.html
More information about the gdal-dev
mailing list