Ask Your Question
1

How can I add up the value of a different layer's field when it intersects with a polygon in QGIS?

asked 2022-12-15 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-08-15 07:00:00 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-15 11:00:00 +0000

Seen: 17 times

Last updated: Aug 15 '21