[gdal-dev] color-code/class the raster in gdal/python

jdmorgan jdmorgan at unca.edu
Thu Feb 23 09:32:23 EST 2012


Hello,

I am creating a raster file (.img) in python/gdal 
using.GetRasterBand(1).WriteArray it is seems to be working well.Where I 
could use some help is in knowing how to color-code/class the resulting 
raster.For instance my raster is only ones and zeros.I would like to 
make the ones white and the zeros black.Any help in this regard would be 
appreciated.

Thanks,

Derek

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120223/7d54033e/attachment-0001.html


More information about the gdal-dev mailing list