-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Show feature count" on a rule based renderer gives wrong result for the else statement (again) #27893
Comments
Author Name: Jürgen Fischer (@jef-n)
1/ The "Route secondaire" level "instead of displaying 0":https://issues.qgis.org/issues/20070, would return 296389 in one case (correct!) and, 304445 with the Else rule (corresponding to the whole layer). 2/ At the bottom of the rules, the Autres nature subclass should return 213037 features as of @select count(nature) from layer where importance not in ('1','2') and nature not in ('Bac auto', 'Escalier','Piste cyclable','Sentier','Chemin')@ but it instead returns the same value shown at its upper level:
1/ The "Route secondaire" level "instead of displaying 0" #27892, would return 296389 in one case (correct!) and, 304445 with the Else rule (corresponding to the whole layer). 2/ At the bottom of the rules, the Autres nature subclass should return 213037 features as of @select count(nature) from layer where importance not in ('1','2') and nature not in ('Bac auto', 'Escalier','Piste cyclable','Sentier','Chemin')@ but it instead returns the same value shown at its upper level:
|
Probably related to #30639 |
This is still valid on QGIS 3.22.4 and 3.24.0. |
I've also noticed this on 3.24.2 (Win10) |
Well, this saved me writing another bug report :) |
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 20071
Affected QGIS version: 3.3(master)
Redmine category:symbology
This is a revival of #22013.
In the attached screenshots, I use the Else shortcut in one case and the full rule in the other. counted features are not the same:
1/ The "Route secondaire" level "instead of displaying 0" #27892, would return 296389 in one case (correct!) and, 304445 with the Else rule (corresponding to the whole layer).
2/ At the bottom of the rules, the Autres nature subclass should return 213037 features as of
@select count(nature) from layer where importance not in ('1','2') and nature not in ('Bac auto', 'Escalier','Piste cyclable','Sentier','Chemin')@
but it instead returns the same value shown at its upper level:
The text was updated successfully, but these errors were encountered: