Questions tagged [feature-count]

Display number of features of a layer in QGIS

Filter by
Sorted by
Tagged with
1
vote
2answers
35 views

Count features in layers and categories

I want to automatically count features in my opened layers, and add the result in the layer name, with pyqgis. I can do it with this code : layers = QgsProject.instance().mapLayers().values() for ...