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?


You can use expressions to define a font size labels

For example:

WHEN "size" > 10 THEN 10 
WHEN "size" > 20 THEN 20
  • 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 Aug 19 '15 at 7:40
  • No dashed underline I'm afraid. – HeikkiVesanto Aug 19 '15 at 7:52
  • Here is an idea to create a dashed underline: gis.stackexchange.com/a/276450 – Stefan Mar 20 '18 at 10:05

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.