Questions tagged [feature-count]
Display number of features of a layer in QGIS
17
questions
6
votes
1answer
265 views
Showing feature count for layout extent on legend using QGIS?
I'm using QGIS 3.6.1 on Win10.
I have a print layout with a map of an area within my total work data set.
I add an item to the print layout legend with the summation button on for "Show feature ...
5
votes
1answer
174 views
Counting number of features within another feature using aggregating function in field calculator of QGIS?
My data: 1 polygon layer + 1 point layer
My target: Calculate the number of points and the sum of a field within each polygon using the aggregate function in the QGIS field calculator.
I know I can ...
4
votes
3answers
77 views
Counting number of polygons inside zone using QGIS?
I've seen a lot of questions about counting the number of points within a polygon but my question is I have 1 vector layer with polygons showing past landslides that have occurred and another 206 ...
4
votes
1answer
318 views
Update feature count of QGIS Layers using PyQGIS when data source changes
In QGIS 2.18.19 I have a PostGIS Layer with a rule based render and activated show feature count. The feature count does not change automatically when doing some INSERTs (or DELETEs as well) directly ...
3
votes
1answer
84 views
Get number of changed features in a layer under edit mode using pyqgis
Is there a method I can find out, how many features in a layer have changed during edit mode (including changes in the attribute and the geometry)?
3
votes
2answers
167 views
Automate filling of attribute table using QGIS?
I am new to QGIS and wish to automate my current process.
In my project I have to open the attribute table of the batch_16 layer having 5 fields (date, checked_by, td_created, td_catagor and ...
2
votes
1answer
534 views
Getting total feature count for multiple layers using PyQGIS? [closed]
I want the total feature count of all the features in all my layers. Doing it manually in QGIS 2.18.16 is too slow.
I have been trying PyQGIS, but am not good with PyQGIS.
Any tips?
2
votes
1answer
31 views
Get number of changed features in a layer using pyqgis
I'm looking for a method to find out how many features in a layer have changed during edit mode (specifically attribute values). For my example i'm using QgsVectorLayerEditBuffer object, method ...
2
votes
0answers
18 views
All the third level Submenus in QGIS are gone
I suddenly am missing all of my third level submenus in QGIS. I wanted to use count points in polygon which exists on the vector analysis menu- but selecting it shows no other menus or dialog box ...
1
vote
2answers
37 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 ...
1
vote
1answer
36 views
Count subset of points in polygons
Being an SQL-noob, I found a working solution to generate a virtual layer with counts of points in the polygons of another layer, inspired by this
https://gis.stackexchange.com/a/54680
SELECT ...
1
vote
1answer
69 views
Formatting legend item and feature count text in ArcGIS Pro?
In ArcGIS Pro you can turn on the option "Show feature counts" in Format legend item -> Feature Display Options to show the number of features for each legend item. When turned on however the number ...
1
vote
1answer
77 views
Feature Count for Categorized Layers with the Atlas function of Print Layout in QGIS 3
In QGIS, is it possible to count the features of each class in a categorized layer where the features being counted are limited to those that are inside the current atlas feature?
I have tried ...
0
votes
2answers
56 views
How to efficiently extract specific metadata for many shapefiles?
I have a directory with 50 subdirectories containing a total of 300 shapefiles which I would like to query for their feature count and output to a text file.
Thus far I am able to get the feature ...
0
votes
2answers
34 views
Counting kilometers/lines with ArcGIS
I am trying to get a measure of border intensity of different regions in Europe.
Having a relevant shapefile of European countries at the regional level (NUTS2) as well several ones by century for a ...
0
votes
1answer
44 views
Trying to Count Number of Points within Specified Distance from Lines using Carto?
There were multiple points stacked on the same coordinates that I did not notice.
I am trying to count the number of points within 10km of lines (routes) so the routes can be styled according to the ...
-2
votes
1answer
158 views
Using PyQgis to count number of features in category [closed]
Is there a way I can use pyqgis to count the number of features in different categories in one layer? I am using rule based renderer, and realizing that for some rules the feature count is actually ...