[gdal-dev] Problem using image bands
jcurru
jcurru at yahoo.es
Fri Oct 19 05:32:05 PDT 2012
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.
More information about the gdal-dev
mailing list