I generate maps from CSV to which I apply a style sheet.

In the stylesheet defines the set of items I may encounter.

But in most csv, there are not all the elements defined in style.

So I find myself with times 10 points of the same type on the map, but with a legend of 50 categories.

How to display the categories that are present on the


The button you want is called "Filter legend by map content." Here's what it looks like in the main QGIS window:

enter image description here

Here's what it looks like in the print composer: enter image description here

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.