Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Using QGIS 1.8, I've got a shapefile with an integer field called "AREA" and I'd like to sum the values which are in this shapefile.
Does anybody know how to?
You can immediately get field summary data, including sums, from the menu Vector|Analysis tools|Basic statistics:
You could also open the .dbf file associated with your shapefile in Excel or OpenOffice, and you'll be able to work with all the field values as a spreadsheet.
Using the DB Manager SQL window, you can use SQL expressions with SQL spatial functions to sum, group, etc.
This can be used on shapefiles, or any other type of layer in your QGIS project:
Required, but never shown