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

Bernd Vogelgesang bernd.vogelgesang at gmx.de
Wed Jan 20 09:32:18 PST 2021


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



More information about the Qgis-user mailing list