1

I couldn't find an option of "rule-based"-labeling in QGIS 2.10. For example that big cities are also labeled bigger than smaller cities. Am i missing something or doesn't it exist?

1 Answer 1

5

You can use expressions to define a font size labels

For example:

CASE 
WHEN "size" > 10 THEN 10 
WHEN "size" > 20 THEN 20
ELSE 30
END
3
  • Thank you, solved my problem. Another question: Is it possible to get a dashed underlined Label, for e.g. main cities, but not capital cities. I only see that the normal underlined label is possible.
    – Duddel
    Commented Aug 19, 2015 at 7:40
  • No dashed underline I'm afraid.
    – HeikkiVesanto
    Commented Aug 19, 2015 at 7:52
  • Here is an idea to create a dashed underline: gis.stackexchange.com/a/276450
    – Stefan
    Commented Mar 20, 2018 at 10:05

Your Answer

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

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