QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Legend/Layer tree should show active rules used for rendering

Open qgib opened this issue 11 years ago • 2 comments

Author Name: Hannes Keski-Kiikoinen (Hannes Keski-Kiikoinen) Original Redmine Issue: 10312

Redmine category:gui


Hi all!

This issue concerns the situation of rendering a layer with rule-based rendering so, that the map scale affects the styling of the layer. When I create a legend with having such layer on the map, each of the scale dependent stylings appear in the legend although only one of them is used on the map.

In my opinion, QGIS should notice this and show only the styling that is used for the scale used in the map that is connected to the legend.

Reproduction:

  1. Create rule-based styling with multiple rules for some data.
  2. Set the min scale and max scale properties for the layer so that the same features are rendered with different style depending on the map scale level.
  3. Create a legend for a map. Multiple styles are shown in the legend while only one of them is used in the map, corresponding to the map scale.

Discussion is welcome, if needed!

qgib avatar May 20 '14 03:05 qgib

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as GUI
  • subject was changed from Legend creation when having a rule-based rendered layer with min scale and/or max scale determined to Legend/Layer tree should show active rules used for rendering
  • tracker_id was changed from 1 to 2

qgib avatar Jun 21 '14 11:06 qgib

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

qgib avatar Apr 30 '17 22:04 qgib