Bug report #5768

Legend: Show Feature Count not working for Rule-Based Layers

Added by Andreas Neumann over 10 years ago. Updated about 10 years ago.

Assignee:Marco Hugentobler
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:15269


In the legend tree in the Layers panel one can activate the "Show Feature Count". For rule-based layers, it does not work and only zero values are displayed.

Associated revisions

Revision 558245c8
Added by Radim Blazek about 10 years ago

count features in legend for rule based renderer, fixes #5768


#1 Updated by Regis Haubourg over 10 years ago

Confirmed for me on every version I have tested (from 1.7.4 to current master).

#2 Updated by Paolo Cavallini about 10 years ago

  • Target version set to Version 2.0.0

#3 Updated by Radim Blazek about 10 years ago

  • Status changed from Open to Closed

#4 Updated by Radim Blazek about 10 years ago

  • Resolution set to fixed

Fixed in master.

Attention: one feature may fall into more rules and thus it may be counted more times and total will not be equal to total number of features!

Work done by Faunalia for Agence de l'eau Adour Garonne.

Also available in: Atom PDF