TransWikia.com

Reducing raster legend classes to the ones shown in my map in QGIS

Geographic Information Systems Asked on December 30, 2020

I have a landcover raster layer. I use the styles of a QML-file. Is there an option to reduce my style classes shown in the legend to only the relevant classes shown in the map?

The QML has 44 classes, but on the map, there are only 26 classes shown. In ArcGIS, there was an option to automatically reduce the legend to the relevant classes. Is that also possible in QGIS?

enter image description here

One Answer

I just need to push the button "classify" in the style settings in the layer settings, after I imported the QML-file. Then it reduces the 44 clc classes to the actual existing 25 clc classes in the region.

In the screenshot, you can see that clc classes not existing in the region (like the ocean, lagunes, etc.) are not shown in the legend anymore.

enter image description here

enter image description here

enter image description here

Correct answer by Enzo Baldini on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP