Seems a good solution by now, thanks. In particular
because the recommended RGB colors are provided by the authors
for that map.
Is there any way of displaying the annotated color table in the legend or
in the canvas for printing?
Agus

Peter Ersts wrote:

The easies way is to make a text file (classification.txt) and add the color entries by hand. So the contents of the file will look like:

INTERPOLATION::EXACT
11,0,0,255,255,Post-flooding or irrigated croplands (or aquatic)
14,0,255,0,255,Rainfed croplands
20,255,0,255,Mosaic cropland (50-70%) / vegetation (grassland/shrubland/forest) (20-50%)


This will set pixels 11 to blue, 14 to green and 20 to red. The format is really basic.
pixel value, red, green, blue, alpha, label (no commas)

Then on the colormap tab, you can click the "Load color map from file" button, second one from the top right.

Eventually it is planned that it will be able to read a variety of different colormap formats.

-pete

Agustin Lobo wrote:
I've got a landcover map in raster format (a tif file)
from GLOBOVER (http://postel.mediasfrance.org/en/BIOGEOPHYSICAL-PRODUCTS/Land-Cover/)
The raster is opened in QGIS as "Single Band Grey"
How can I set an arbitrary color table? I can see how
to set a ramp, but this is a classified image, in which
integer values stand for different types
i,e,:
11    Post-flooding or irrigated croplands (or aquatic)
14    Rainfed croplands
20 Mosaic cropland (50-70%) / vegetation (grassland/shrubland/forest) (20-50%)

for which different colors should be set as in "unique value"
for vector maps.

Thanks

Agus



--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: [email protected]
http://www.ija.csic.es/gt/obster
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to