Bug report #13561
Refine rules dialogs create invalid rules for expressions
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21603|
This affects Refine current rule | Add categories to rule as well as Add ranges to rule.
If you use an expression such as COL1/COL2 to create a classification, the resulting rule will be, e.g. "COL1/COL2" >= 0 AND "COL1/COL2" <= 10
There are actually two errors here:
- QGIS cannot find a column "COL1/COL2" and therefore won't draw the rule.
- The rules overlap because they are always generated using >= and <= rather than > and <=.