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.

  • 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 '17 at 11:35
  • Most welcome, will post the comment as an answer for the convenience of others :) – Joseph Mar 15 '17 at 15:47
1

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

  • 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 '17 at 8:57
  • @yenats - Most welcome, glad it helped! Yes...the closed tab can be quite annoying :) – Joseph Mar 16 '17 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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