Bug report #21994

Print layout legend "feature count" shows feature count for entire layer when "filter legend by map content" is on

Added by Carolyn Krause 7 months ago. Updated 7 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.6.1 Regression?:No
Operating System:Windows 10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29809

Description

In the print layout, a legend has the option to display a "feature count" for a layer. This option displays the total number of features in that layer, as expected. However, the option, "filter legend by map content," has no effect on the "feature count." I would expect the "filter legend by map content" option to reduce the "feature count" to count only the features within the map extent.

For example, if a layer has 10 features, but only 5 are visible on the map. I would expect "feature count" to display [10] when "filter legend by map content" is off. I would expect the "feature count" to change to [5] when "filter legend by map content" is turned on.

I'm posting this as a bug report because I think the feature doesn't work as would be reasonably expected. If others disagree, please make this a feature request instead. It would be very useful to automatically display a count of features visible on the map.

There are screenshots of this issue on GIS Stackexchange: https://gis.stackexchange.com/questions/321578/how-to-show-feature-count-for-layout-extent

History

#1 Updated by Brett Carlock 7 months ago

I agree with your assessment of expected behavior vs actual.

Also available in: Atom PDF