1

I want to calculate the distribution of attributes of a vector layer in a grid layer by using "Join Attributes by Location (summary)". My question is, how to set the geometric predicate so that each polygon is counted in only one grid?

Screenshot of the distribution of vector and grid layers:

enter image description here

8
  • 3
    Convert your houses (?) to centroids.
    – Erik
    Commented Jul 23, 2021 at 8:17
  • But centroids will still have containment/contact etc. relationships with multiple grids?
    – TigerLily
    Commented Jul 23, 2021 at 8:19
  • 1
    Centroids are points. If you are able to demonstrate that a point can be contained by several not overlapping polygons, you shouldn't be posting here, you should be writing a paper and getting ready for you nobel prize.
    – Erik
    Commented Jul 23, 2021 at 8:22
  • 2
    You're right, thanks. But I don't think a little politeness will cost you anything.
    – TigerLily
    Commented Jul 23, 2021 at 8:24
  • 2
    Oh you'd be surprised in how many n-dimensional realms that point contains the polygon...but in your Euclidean 2D plane, using centroids is the way to go. The key is true containment, to rule out the extremely unlikely case of a point sitting exactly on a boundary.
    – geozelot
    Commented Jul 23, 2021 at 9:28

0

Your Answer

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

Browse other questions tagged or ask your own question.