The red colored countries in the image are countries i consider highly vulnerable to freshwater shortages. I like to have the name of only these highly vulnerable countries appear on the map, i'd be glad to get responses on how to go about this. enter image description here


Select the Field that contains the country names from the drop-down list of Label with, and under Rendering Tab, go to Show label -> Edit:

enter image description here

and enter the following expression:

"Field_name" = 'High Vulnerable'

Where the Field_name is the field that has the classification of water vulnerability.

Pay attention to the the double quote marks for the field column name and single quote marks for the string value.

  • thanks so much for your efforts, i got the desired result. – Learner May 18 '17 at 22:01
  • @Learner, if this answer worked for you, please accept it as per the help centre. – Fezter May 18 '17 at 22:54

Another option:

There's full support for filtering labels by an expression. In the labeling tab choose "Rule based labling" from the top drop-down". In that window, Click on the green "+" to add a new rule. Then you can use all the expression options to add and format labels. For example, if the water availability is a numeric field, you could enter something like: "water_available" >1000000

Then, of course, choose the country name field as the label.

What's more, you can label different levels of water availability with different color or size labels...


what you want is a rule based labeling. You can use it like this: Tested in QGIS 2.14.3:

enter image description here

  • what software are you using to create that animated GIF? – DPSSpatial May 18 '17 at 15:15
  • 3
    @DPSSpatial it works for windows and its called ScreenToGif – LaughU May 18 '17 at 15:20
  • @LaughU thanks for the easy to follow through animation. It worked perfectly for me. – Learner May 18 '17 at 21:53
  • ScreenToGif has now moved to screentogif.com – AndreJ Nov 13 '18 at 11:22
  • Love this answer! – JohnGIS Jul 23 at 9:45

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.