TransWikia.com

Joining attributes by the biggest overlapping areas

Geographic Information Systems Asked on November 1, 2021

I have two layers and I want to join the attribute of them together in QGIS. Unfortunately, the overlapping layer (The Blue one) ist not very precicse, so there are parts that overlap on small areas.

enter image description here

If I join the attributes together (-> join type: intersects/one to many), I get multiple overlapping attributes. But i only want the attributes with the biggest overlaping area, which would be those:

enter image description here

If join the attributes together with the one to one method, I often get the attribute of the small overlapping parts, which i dont need/are wrong. I know I can get the mean attributes of all overlapping areas with the Join Attributes by Location (summary) function, which is partly a solution to my problem.

But what I really want is to only join the attribute with the biggest overlapping area. Any idea how to do this?

2 Answers

The "Join Attributes by Location" algorithm from the Processing Toolbox has a switch to do exactly this:

enter image description here

Answered by ndawson on November 1, 2021

In qgis there is a plugin called select by centroid. But building on that I developed my own model to join based on the layer centroids by converting the layer to centroids and then join that table... Works a treat

Answered by Christian Leidersdorff on November 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP