[Qgis-user] Colorize with values from attribute table

Lene Fischer lfi at ign.ku.dk
Wed Jul 6 04:45:37 PDT 2016


Great – Thanks – I´ll make a tutorial ☺


Regards
Lene Fischer

Fra: Richard McDonnell [mailto:richard.mcdonnell at opw.ie]
Sendt: 6. juli 2016 13:14
Til: Lene Fischer; Qgis-user at lists.osgeo.org
Emne: Re: [Qgis-user] Colorize with values from attribute table

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>


[cid:image001.gif at 01D1D78C.AC70EC50]











_______________________________________________

Qgis-user mailing list

Qgis-user at lists.osgeo.org<mailto: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
[http://www.opw.ie/en/media/opw-email-banner.png]<http://www.opw.ie/>
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/684d1277/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4971 bytes
Desc: image001.gif
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160706/684d1277/attachment.gif>


More information about the Qgis-user mailing list