Geographic Information Systems Asked by Seren on March 23, 2021
I want to group and count features with the same code attribute value.
I can classify the data and enable feature count in the layer list but I cannot get counts in the attribute table.
I suggest you to install Group Stats plugin. Here is a quick tutorial:
The Count will appear. If you go to preferences you should be able to select only Count avoiding the other parameters to be displayed (this is not my case...). Remember before click Save button you have to select the fields you want to add to your .csv: hold on Shift for do that. Here is a more advanced tutorial written by Anita Graser.
Answered by G M on March 23, 2021
you could also use Qspatialite in QGIS. The SQL window is just as Mapinfo one. Up to you after to make your SQL request with a groupby command on the wanted column.
Answered by BAUDIN on March 23, 2021
This was the best result on Google I could find, but the screenshot tutorial by G M is out of date and it took me a while to work out how to use the plugin.
How this helps other people.
Answered by Gregory on March 23, 2021
With the new virtual layer you can now use SQL on any layer in QGIS, for example the airport Shapefile from the QGIS sample data:
To count the number of airports by USE type and compute the average elevation use:
The results are loaded as a new layer:
Answered by underdark on March 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP