Using QGIS` atlas feature, how can I pass information from my coverage layer to the layer's rendering engine?
At the moment, I'm abusing the Page name in the Layout > Atlas tab like this:
"country_code" || '-' || "my_custom_field"
In the "Labels" section in my layers I can now access this information using the variable @atlas_pagename.
Lets assume I have this coverage layer:
Now, @atlas_pagename has these values...
... and I can use the variable in my Data defined override settings using something like
The problem with this approach is every time I want to access the value of my_custom_field, I have to parse the needed information. And I can't use the page name variable for its intended use anymore.
So, how can I set a variable in my atlas configuration with the value of a field in my coverage layer?