I have a shapefile of polygons where every polygon represents a vegetation class with attributes like the class code, class description and (R,G,B) values.
I can rasterize with ImageRasterizer to generate a 4 band RGBA32 geotiff file with (R,G,B,A) values correctly assigned.
The different vegetation classes is stored in a lookup table with this structure (no more than 50 entries):
ID,CODE_CLASS,DESCRIPTION_CLASS,R,G,B
1,100,Description class 1,255,255,0
2,200,Description class 2,24,95,205
...
To reduce the size of geotiff file I have generated 1 Band Greyscale (GRAY8) Geotiff (also with ImageRasterizer). The result is correct, but I don't have any control about the value stored in band 0 and my lookup table describing vegetation class.
QUESTION: How can assign the lookup table in rasterization process to 1 Band Greyscale (GRAY8) ?
Is there a way to do this ?
Than you very much in advanced !