Thanks Martin!
_____ From: Martin Chapman [mailto:[email protected]] Sent: Thursday, August 06, 2009 4:09 PM To: 'Martin Chapman'; [email protected] Subject: RE: [gdal-dev] RasterIO Writing Packed RGB data Answered my on question: It is: outputDataset->RasterIO(GF_Write, 0, 0, width, height, buffer, width, height, GDT_Byte, numBands, NULL, 3, 3 * width, 1); Martin _____ From: [email protected] [mailto:[email protected]] On Behalf Of Martin Chapman Sent: Thursday, August 06, 2009 3:51 PM To: [email protected] Subject: [gdal-dev] RasterIO Writing Packed RGB data I'm using the RasterIO method on the GDALDataset object and trying to write a buffer where the pixels are packed as RGBRGBRGB etc. and having trouble figuring out what parameters to pass as the pixel, line and band space. My desired output is a 3 band geotiff and the source and dest datatype is byte. Can anyone point me the write direction on how to use those parameters in this case? Thanks in advance, Martin
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
