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. Reagrds, Richard -- 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 https://gov.ie/opw -- To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/[email protected] Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/ -----Original Message----- From: Qgis-user <[email protected]> On Behalf Of Bernd Vogelgesang Sent: 20 January 2021 17:32 To: qgis-user <[email protected]> Subject: [Qgis-user] Using color_rgba for symbols from field-value Hi, 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? Cheers, Bernd _______________________________________________ Qgis-user mailing list [email protected]<mailto:[email protected]> 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/
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
