2

I have two polygons layers (a squares grid (blue in image) and a rectangles grid (green in image)). Because the different polygon sizes, different squares overlap with a single rectangle. I need to find the square with the highest overlapping area for each rectangle, so at the end, I could assign each square to one rectangle. Somehow, I would like to filter just the rectangles with squares assigned after applying this rule. Notice that two squares could be assigned to the same rectangle.

Just to have in mind: the squares don´t have the same area, as in the borders it may be an incomplete square (see image), but still need to know in which rectangle fall the majority of its area.

enter image description here

I am using QGIS.

Any ideas?

0

You can use Plugin: Select Within which can help you to select the polygons where their centroids are located within the other polygon. It is same as select by location with additional option to have the centroids located completely within the polygon of other layer.

You can apply the selection on the whole polygon layer or only on selected polygons.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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