Re: [gdal-dev] GDALRasterBand to NSImage

2014-04-23 Thread Even Rouault
Le mercredi 23 avril 2014 22:47:04, Patrick Cannon a écrit : > Hi Even, > > Thank you for the reply. > > Yes I understand it is an index for the color table. > > But the raster data is not all the same and I would expect the index to > have something other than a 1 returned for each byte. > > I

Re: [gdal-dev] GDALRasterBand to NSImage

2014-04-23 Thread Patrick Cannon
Hi Even, Thank you for the reply. Yes I understand it is an index for the color table. But the raster data is not all the same and I would expect the index to have something other than a 1 returned for each byte. If I use the same call under Linux with the exact same file it works as expected.

Re: [gdal-dev] GDALRasterBand to NSImage

2014-04-23 Thread Even Rouault
Le mercredi 23 avril 2014 22:22:45, Patrick Cannon a écrit : > Hello Everyone, > > I have been trying to get a few raster files loaded via GDAL but it seems > that all I get back from GDALRasterIO is a bunch of 1’s which then get set > as 255 or white. > > The call I am using is: > GDALRaster

[gdal-dev] GDALRasterBand to NSImage

2014-04-23 Thread Patrick Cannon
Hello Everyone, I have been trying to get a few raster files loaded via GDAL but it seems that all I get back from GDALRasterIO is a bunch of 1’s which then get set as 255 or white. The call I am using is: GDALRasterIO(ds->GetRasterBand(1), GF_Read, 0, 0, pixWide, pixHigh,