Hello! I have a problem reading an ECW image. I want to read the image using only the first band. So I use: int bmap[3] = {1,1,1}; GDALImage->RasterIO( GF_Read, x, // int nXOff, y, // int nYOff, dx, // int nXSize, dy, // int nXSize, buffer, // void* pData, xBufSize, // int nBufXSize, yBufSize, // int nBufYSize, GDT_Byte, // GDALDataType eBufType, 3, // int nBandCount, bmap, // int* panBandMap, 3, // int nPixelSpace, xBufSize * 3, // int nLineSpace, 1 // int nBandSpace ); This is working well with some ECW images (they show as grayscale) but it does not with another, big ECW. It shows in full RGB color, exactly the same as if I had written int bmap[3] = {1,2,3};
Any idea? Thanks in advance! -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-using-image-bands-tp5009873.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev