[Gdal-dev] simplest method for creating/editing a GTiff color table

Gregory, Matthew matt.gregory at oregonstate.edu
Thu Jul 5 14:08:49 EDT 2007


Sorry for a what is likely a very simple question, but a day of web
searches has left me frustrated ...

I have a simple GeoTiff that has an embedded Color Table with this
gdalinfo:

Driver: GTiff/GeoTIFF
Size is 13354, 7330
....
Band 1 Block=13354x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
    0: 0,0,0,255
    1: 254,254,254,255
    ...

What is the easiest way (GDAL or not) to edit this color table?  Or
alternatively, what is the easiest way to create and associate a color
table with a GeoTiff?  Sorry if this has been addressed already.

thanks,

Matt Gregory
Faculty Research Assistant
Department of Forest Science
Oregon State University
Phone : (541) 758-7778
Email : matt.gregory at oregonstate.edu




More information about the Gdal-dev mailing list