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).
-
How do you want to solve this? Through any software or programming? Kindly specify.– PadmanabhaDec 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 SilvaDec 1, 2022 at 11:31
-
1Using Join attributes by location (Summary) the way I described gave me exactly the result you are after when I tested.– MattDec 1, 2022 at 20:33
-
1No problem :) easy mistake to make. I'm glad you achieved what you needed in the end.– MattDec 2, 2022 at 9:35
1 Answer
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