In a polygon dataset, I try to summarize values of surrounding features based on a minimum distance if their area is too small (e.g. 500 square meters).
For example, I have 3 polygons with 300, 250 and 450 square meters that sum up to 1000 square meters. They might not need to touch each other so using
aggregate() for features that tough each other is not possible.
The area of the selected (yellow) features should be aggregated to a total sum. The violet points represent the centroids.
I already tried via a distance matrix (based on the centroids of the polygons) to find out the distances between the centroids of each polygon feature. My consideration was that I can join the distances between the polygon centroids to the polygons, then filter for small distances (e.g. within 50 meters) to identify polygons that lie within this 50-meter threshold and then aggregate them via an
id field. However, this resulted in a 1 to n join (or a value relation) because every single centroid has n-1 distances to all other centroids in the dataset.
I can't figure out how to aggregate the values. I also need to integrate the workflow into a graphical model. Any suggestions on how to start?