<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>A friend of mine has a dirty input data set with lots of overlapping geometries (within the same layer) and asked me if there is a tool within QGIS to automatically remove the overlaps and assign the overlapping area to the neighbor polygon with the largest area.</p>
<p>The solution was surprisingly hard to find, although I am pretty sure there are multiple combinations of algorithms that would solve the problem. Here is the solution I came up with: <a href="https://github.com/qgis-ch/overlap_removal/tree/main">https://github.com/qgis-ch/overlap_removal/tree/main </a>- perhaps you have better ideas - more elegant solutions?</p>
<p>Wouldn't it be great if QGIS had a processing tool to solve this overlap cleaning within the same layer "out of the box" without having to use a graphical model or a more or less complicated sequence of algorithms in the processing toolbox? Apparently, ArcGIS has such a tool ...</p>
<p>Saga and GRASS also might have such tools - but I couldn't get the SAGA based QGIS plugin "Dissect and dissolve overlaps" (<a href="https://plugins.qgis.org/plugins/dissect_dissolve_overlaps">https://plugins.qgis.org/plugins/dissect_dissolve_overlaps</a>).</p>
<p>The same problem exists for automatically filling small gaps in the polygon data set ...</p>
<p>Andreas</p>
<p><br /></p>
</body></html>