[Qgis-developer] color table: labels missing?

benoit-3 at bc-consult.com benoit-3 at bc-consult.com
Wed Mar 16 08:54:19 EDT 2011


 Paolo,

 Sorry, wrong procedure!

 In the raster properties dialog box, simply "Load style..." and 
 navigate to the qml file.
 Then go to the Colormap tab and the labels should be displayed.

 Sorry again.
 Benoit


 On Wed, 16 Mar 2011 08:50:21 -0400, <benoit-3 at bc-consult.com> wrote:
> Hi Paolo,
>
>
> On Wed, 16 Mar 2011 13:15:30 +0100, Paolo Cavallini
> <cavallini at faunalia.it> wrote:
>> Hi all.
>> At EEA they were so kind as to add my CORINE color table to the 
>> standard
>> data distribution:
>> 
>> http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2006-raster
>> so our QGIS users see the land cover in the right colors.
>> The problem is that the labels (very important to interpret the 
>> data) are
>> not shown in the layer properties>colormap. This is how the color 
>> table is
>> written:
>>
>> # QGIS Generated Color Map Export File
>>
>> INTERPOLATION:DISCRETE
>>
>> 1,230,000,077,255, 111 - Continuous urban fabric
>> ...
>>
>> Any explanation or suggestion as to what should be changed? I tried
>> putting '' around label, but it does not work.
>>
>> Thanks.
>
> Perhaps, using a qml file based on your colour palette (csv) would do 
> it?
> Please try one of the attached qml files:
> - GRID_CODE.qml for classification of colours in function of the grid
> code (1-44)
> - CLC_Code.qml for classification of colours in function of the CLS 
> (111-523)
>
> Unzip the attached file.
> Open QGIS
> Load the Corine raster
> Open its properties dialog box
> Set the Style->Color map to 'Colormap'
> In the Colormap tab, load the CLC_Code.qml. You should have the
> labels displayed alongside the colours.
>
> Does it work for you?
>
> Regards,
> Benoit



More information about the Qgis-developer mailing list