Bug report #8591

else condition for rules

Added by Nathan Woodrow about 6 years ago. Updated about 1 year ago.

Status:Closed
Priority:Normal
Assignee:Nathan Woodrow
Category:GUI
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:17333

Description

We really need a else rule for rule based rendering. Top level else should be a final fallback if no rules are true, nested else should only work within that group

Consider the following

A top level else is really required in order to draw the white with black dot symbol only when all the other conditions are not meet.

rules.png (10.9 KB) Nathan Woodrow, 2013-09-09 06:15 PM

else.png (143 KB) Nathan Woodrow, 2013-09-11 11:04 PM

History

#1 Updated by Nathan Woodrow about 6 years ago

  • Assignee set to Martin Dobias
  • Target version set to Future Release - High Priority

#2 Updated by Nathan Woodrow about 6 years ago

Assigning to you Martin but I would like to chat about it at the HF.

#3 Updated by Nathan Woodrow about 6 years ago

  • Assignee changed from Martin Dobias to Nathan Woodrow

I'll have a look into this

#4 Updated by Nathan Woodrow about 6 years ago

Work in progress

#5 Updated by Nathan Woodrow about 6 years ago

  • % Done changed from 0 to 50

#6 Updated by Nathan Woodrow about 6 years ago

  • % Done changed from 50 to 70

Logic implemented in 02ed712b03de18a3

Not closing until the UI is cleaner. Just added ELSE to the expression text will make the execute only if the other rules fail.

#7 Updated by Jürgen Fischer over 5 years ago

  • Category set to GUI

#8 Updated by Giovanni Manghi over 2 years ago

  • Regression? set to No
  • Easy fix? set to No

#9 Updated by Harrissou Santanna over 1 year ago

  • Description updated (diff)

Can we close this now that f2e8c37e is done or anything left to do?

#10 Updated by Nyall Dawson about 1 year ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF