<div dir="ltr"><div>Dear all,<br>I work with Qgis, I have a polygon layer of 4,000 objects. A 'hierarchy' field provides information on the confidence level: 1, 2A, 2B, 3A, 3B.<br>Of these 4,000 polygons, 3,000 are actually small polygons less than 500 m².</div><div> For these small polygons, I'd like to be able to merge them with one of their neighboring polygons, ideally, the one with the closest "hierarchy" value.</div><div> If not possible to do that, with the one with the lowest "hierarchy" value.</div><div> Among these 3,000 polygons, some have no neighbors. </div><div>They are isolated. For these, the idea would be to find a way to first select them and then delete them. Does anyone think they can help? </div><div>How can I ideally do this with QGIS or PostGIS?</div><div>Thanks so much.</div></div>