[Qgis-user] Using color_rgba for symbols from field-value

Richard McDonnell richard.mcdonnell at opw.ie
Wed Jan 20 09:53:36 PST 2021

Hi Bernd,

I have tested a little polygon dataset, adding a rgba field (as a text string) and found that QGIS will actually use the Field type: string option to apply the colour. Just select your rgba attribute and it works fine.

hope that helps.



Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

Oifig na nOibreacha Poibl?
Office of Public Works

Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
M +353 87 688 5964 T +353 1 647 6543

To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie

Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/

-----Original Message-----
From: Qgis-user <qgis-user-bounces at lists.osgeo.org> On Behalf Of Bernd Vogelgesang
Sent: 20 January 2021 17:32
To: qgis-user <qgis-user at lists.osgeo.org>
Subject: [Qgis-user] Using color_rgba for symbols from field-value


I would like to hard-wire the colours for categories with their rgba-values in a field.

I have a text field named "rgba" and am searching for a way to make this color_rgba-function working.

e.g '146,208,80,255'

It's obvious that my colour-values are an array of strings, which need to be somehow converted to integers to be eaten by the color_rgba.

So in theory, the string '146,208,80,255' has to become an array, probably by array("rgba"). But this array is an array of strings and not of integers.

Does anyone know how to achive this array of integers, so the

color_rgba(somemagic("rgba") returns my colour?




Qgis-user mailing list

Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Email Disclaimer: https://www.opw.ie/en/disclaimer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210120/c5a1b81a/attachment.html>

More information about the Qgis-user mailing list