Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Ouch! Thank you very much, Even. I should have asked sooner, instead of going to bed at 5 in the morning... :-) Yes, I have to read into a RGB buffer, but your solution would increase a lot the loading time for other images that are working well. I have read this: http://trac.osgeo.org/gdal/cha

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Ouch! Thank you very much, Even. I should have asked sooner, instead of going to bed at 5 in the morning... :-) Yes, I have to read into a RGB buffer, but your solution would increase a lot the loading time for other images that are working well. I have read this: http://trac.osgeo.org/gdal/chang

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread Even Rouault
Selon jcurru : > 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, >

[gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
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,