Hi Richard, thanx for having a look. First I overlooked this option (gnrr ..), but then, it did not work :(
My layer is a point layer of bat species found in batboxes. To this layer, I join a reference list via the species abbreviation to get the latin name and the colour. When I now use this layer to categorize the points by species and set my rgba-field for the symbol colour, there are still random colours applied to the categories. Bug, feature or misinterprestation of the workflow? Bernd Am 20.01.21 um 18:53 schrieb Richard McDonnell:
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/richard.mcdonn...@opw.ie Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/ -----Original Message----- From: Qgis-user <qgis-user-boun...@lists.osgeo.org> On Behalf Of Bernd Vogelgesang Sent: 20 January 2021 17:32 To: qgis-user <qgis-user@lists.osgeo.org> 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 Qgis-user@lists.osgeo.org<mailto:Qgis-user@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/
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user