Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use the "Join attributes by location" tool in QGIS to add up the values of a different layer's field when it intersects with a polygon. Here's how:

  1. Load both the polygon layer and the other layer that contains the field you want to add up.

  2. Select the polygon layer in the Layers panel and click on the "Join attributes by location" tool in the Processing Toolbox.

  3. In the "Join attributes by location" window, select the other layer from the "Input layer" drop-down menu.

  4. Select "Take attributes of first located feature" under "Join type", which means that the attributes of the first feature that intersects with each polygon will be taken.

  5. Choose the field from the other layer that you want to add up under the "Fields to add" list.

  6. Check the box next to "Summarize" and select "Sum" from the drop-down menu.

  7. Choose a name for the output layer and click "Run".

The output layer will now contain the polygons with added-up values from the other layer within their boundaries. You can open the attribute table of the output layer to see the new field with the summed values for each polygon.