-1

I have a square grid and I have multiple centroids on another layer. These centroids have many attributes as values. I want for each grid cell to assume the attributes of the centroids inside them. For example, if a grid has two certain centroids inside it, I want the grid to get the sum of the values for each attribute from each centroid inside it (i.e. if centroid 1 has A=3 and B=2, and centroid 2 has A=2 and B=5, the grid cell should have the attribute values of A=5 and B=7). How can I do this ? I use the last version of QGIS (3.28).

grid centroid print

14
  • How do you want to solve this? Through any software or programming? Kindly specify.
    – Padmanabha
    Dec 1, 2022 at 11:16
  • What GIS software are you using?
    – PolyGeo
    Dec 1, 2022 at 11:19
  • I'm using QGIS 3.28. I'm trying to know if there is anyway to do this through QGIS.
    – John Silva
    Dec 1, 2022 at 11:31
  • 1
    Using Join attributes by location (Summary) the way I described gave me exactly the result you are after when I tested.
    – Matt
    Dec 1, 2022 at 20:33
  • 1
    No problem :) easy mistake to make. I'm glad you achieved what you needed in the end.
    – Matt
    Dec 2, 2022 at 9:35

1 Answer 1

0

Credit: @Matt user:128665

Answer: Using Join attributes by location (Summary)

Note: the answer was already in the comments, but at the time, this question was closed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.