1

In order to style a map comprised by OSM data (shapefiles), I want to use rule-based style. This is very handy, however: the data has so many attributes with lots of values that I somehow loose the overview.

Suppose I want to style different road types. In the properties window, I open the "fields" tab to see my options. I decide that I want to style according to the field "highway". Is there a way to see the possible values for this attribute without opening the attribute table? What I want to see is something like a list

  • primary
  • secondary
  • tertiary
  • motorway
  • residential
  • ...

This could enable making good and fast decisions on layer styles. If there is such an option, I hope someone can indicate it.

2
  • Thank you for your useful comment, @Joseph. I wonder if there is a possibility to see the unique values when editing the style properties? Using the field calculator, I can open either one or the other window which is not so very helpful.
    – yenats
    Mar 15, 2017 at 11:35
  • Most welcome, will post the comment as an answer for the convenience of others :)
    – Joseph
    Mar 15, 2017 at 15:47

1 Answer 1

2

If you want to see the unique values for fields whilst editing your When you edit a rule, click the ellipses button for the Filter option. This opens up the expression string builder (which has a very similar interface like the Field Calculator). Again, you can select the Fields and Values list and load all unique values:

Editing rule

Unique values

2
  • 1
    This is perfect, thank you. When I opened the field calculator or the filter option, the right section wasn't visible. It opened by clicking on the right edge of the window and moving left.
    – yenats
    Mar 16, 2017 at 8:57
  • @yenats - Most welcome, glad it helped! Yes...the closed tab can be quite annoying :)
    – Joseph
    Mar 16, 2017 at 10:07

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.