[Qgis-user] Colorize with values from attribute table

Richard McDonnell richard.mcdonnell at opw.ie
Wed Jul 6 04:14:05 PDT 2016


Lene,
It will depend on your attributes and how you have set it up, but, under 
*Layer Properties*, *Style* the colours can be set using the *Data 
defined override* option (Form Icon) Click on this and select Edit, from 
her you can create the variables you want. On the right you will see a 
group called Colour, depending on how you specify your colour will 
depend on how you use this. For example say you have RGB values in three 
diferent columns, select *Colour* and then *colour_rgb* this will add 
*color_rgba(* to your expression, then using *Fields and Values*, select 
the appropriate Red, Green and Blue attributes from the table and close 
the brackets you should have something like *color_rgba("red", "green", 
"blue") *you will know it has worked, as the *Output Preview *on the 
bottom left will display the RGB value.
Similarly, if you have a single column for your RGB (formatted 
correctly) the same formula would be used, buy you would have a single 
field (column) in the expression.
Hope this is clear!
Regards,

Richard.





On 05/07/2016 10:53, Lene Fischer wrote:
>
> Hi,
>
> Looking for a tutorial for colorizing with values from the attribute 
> table.
>
> I have the RGB values, but can´t find a way to use it…
>
> Forund this old one – but the functions has changed a lot since. 
> http://shreshai.blogspot.dk/2014/10/display-with-color-symbology-from-data.html
>
> Ragards
>
> *Lene Fischer*
>
> Associate Professor
>
> *University of Copenhagen*
>
> Department of Geoscience and Natural Resource Management
>
> Forest and Landscape College
>
> Nødebovej 77a
>
> 3480 Fredensborg
>
> Denmark
>
> MOB +45 004540115084
>
> _lfi at ign.ku.dk_ <mailto:lfi at ign.ku.dk>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
*_Richard McDonnell_*
*GIS Specialist PgD GIS AssocSCSI*
*OPW FRM Data Management*
*52 Stephens Green, Dublin 2.*
TEL: 01 6476543

OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart
OPW - Looking to the future - Caring for the past

***********************************************************
Email Disclaimer: http://www.opw.ie/en/disclaimer/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160706/06dea8b9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 4971 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160706/06dea8b9/attachment.gif>


More information about the Qgis-user mailing list