Re: [gdal-dev] Issue with ReadBlock

2016-01-20 Thread trewdbal
Indeed, I was trying to read a uint16 imagery using a float32 array. Thanks for you speedy assistance. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Issue-with-ReadBlock-tp5246218p5246310.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] Issue with ReadBlock

2016-01-20 Thread Even Rouault
Le mercredi 20 janvier 2016 08:26:51, trewdbal a écrit : > Hi Folks, > > I'm trying to read an image using ReadBlock, but the array is not filled > with raster values. > It works with RasterIO. > > The code below is copied from the GDAL doc ( page >

[gdal-dev] Issue with ReadBlock

2016-01-19 Thread trewdbal
Hi Folks, I'm trying to read an image using ReadBlock, but the array is not filled with raster values. It works with RasterIO. The code below is copied from the GDAL doc ( page ), I just change the type of the paby