[Gdal-dev] Creating a color geotiff

Brian Marchand bmarchand at ara.com
Wed Jan 14 15:09:36 EST 2004


Hello,

 

I'm trying to create geotiff files for the first time and I was
successful in creating a black and white geotiff. So I moved on to
creating a color one. I have a grid of RGB values so I created a data
set with 3 bands of type GDT_Byte.  I used RasterIO to write out a row
at a time. The result was garbage. 

 

Is there a specific order to writing out bands? I first tried writing a
row of red band, then a row of the green band, then the row of the blue
band. This didn't work so I dried writing all of rows for one band
before writing the next. Am I way off on this? How should I be doing
this?

 

Thanks in advance,

 

Brian Marchand

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040114/07b09696/attachment.html


More information about the Gdal-dev mailing list