2

This question has been related to this one:

Making colours from table with colour percentages/RGB-codes

In that scenario I have made sure that my layer has the right colours based on a expression. This is just because this certain dataset has a "standard" we all have to follow.

The thing is this is based on a single symbol expression (aka the hexcode rgb). The colours are right, however when I want to construct a legend by the "ouderdom" layer, the colours of the legend are wrong. This is of course because when I try to categorize it by that field, in the legend random colours are chosen, causing the legend to display the wrong colours.

So to clarify my symbology of the layers needs to based on the "ouderdom" field categorization but the colouring needs to still happen the same expression (so no random colours), how do I do this?

To illustrate what I mean I will ad some screenshots here:

Now this is the setting I use to set the right colour to my features in the layer: enter image description here

In this second screenshot I will get a clear coloring like this: enter image description here

Which matches the standard map of the dataset seen here, this is the standard of the legend everyone has to follow in terms of coloring:

https://www.dov.vlaanderen.be/sites/default/files/pfiles_files/tertiairkaartA3_0.pdf

The problem is, as you may have noticed, the legend highlighted in this screenshot here:

enter image description here

So now I hope you see and understand what the problem is.

3
  • As far as I know you have to adapt the legend symbols manually.
    – Erik
    Commented Aug 17, 2020 at 9:05
  • Really? So there is really no way to make sure the color ramp goes by the same expression as the single symbol one? Are filters not an option here? Commented Aug 17, 2020 at 9:12
  • There was the same question a few weeks ago, but I can't find it right now. Have a look, maybe someone found a solution.
    – Erik
    Commented Aug 17, 2020 at 9:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.