[Qgis-user] Color table for raster map

Agustin Lobo Agustin.Lobo at ija.csic.es
Mon Jan 26 05:53:12 PST 2009


Peter,

What would be the equivalent rules for a continuous pseudocolor table
(i.e., INTERPOLATION::LINEAR ?)
Actually, do you have some standard pseudocolor tables (i.e., terrain
colors) already made?

Thanks
Agus

2009/1/14 Peter Ersts <ersts at amnh.org>:
>
> 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
>
>
> --
> ====================================
> 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
> Web: http://biodiversityinformatics.amnh.org
> Web: http://cbc.amnh.org
>
> Quantum GIS Raster Development Team. Visit http://www.qgis.org
> to learn more about QGIS, a free and open source desktop GIS
>
> Open Source,
> ...evolving through community cooperation to change the world bit by bit
>
>



-- 
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
e-mail Agustin.Lobo at ija.csic.es
http://www.ija.csic.es/gt/obster



More information about the Qgis-user mailing list