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.

[gdal-dev] Issue with ReadBlock

2016-01-19 Thread trewdbal
lloc(nXBlockSize * nYBlockSize * sizeof(GByte)); Thanks for any help. Trewdbal int main() { std::cout.precision(12); GDALAllRegister(); const char* PANFile = "/home/ficus/Code/Covariance/rasters/pan2048.tif"; GDALDataset *poDataset; poDataset