[Qgis-user] Color table for raster map
ersts at amnh.org
Wed Jan 14 14:43:09 EST 2009
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:
11,0,0,255,255,Post-flooding or irrigated croplands (or aquatic)
20,255,0,255,Mosaic cropland (50-70%) / vegetation
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.
Agustin Lobo wrote:
> I've got a landcover map in raster format (a tif file)
> from GLOBOVER
> 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
> 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.
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS
...evolving through community cooperation to change the world bit by bit
More information about the Qgis-user