0

I have a huge vector layer coming from an aerial image classification, containing lots of small polygons. I’m willing to clean it a bit (i.e. "removing" polygons < 25 sq. metres) but I didn’t find any tool related to a rule-based merge capable of merging adjoining polygons according to the longest shared border or biggest neighbouring area.

I already found this question, but it was solved using ArcGIS, while I'm looking for alternatives in R or QGIS.

Lilium
  • 1,057
  • 1
  • 6
  • 17
Nico
  • 305
  • 2
  • 11
  • If you want to merge polygons based on a rule, it would be rather helpful if you shared said rule. – Erik Feb 15 '22 at 15:28
  • "merging adjoining polygons according to longest shared border or biggest neighbouring area" – Nico Feb 15 '22 at 15:35
  • How is the "or" defined? When do you use which? – Erik Feb 15 '22 at 16:06
  • Does this answer your question?: https://gis.stackexchange.com/a/336133/8104. What are the features (e.g. trees, cars, houses, etc..)? Are you able to dissolve the features to simplify the geometry? What does the intended output look like? Please edit your post with these details. – Aaron Feb 16 '22 at 16:42

1 Answers1

1

After digging quite a bit, it seems I was looking around using the wrong terms. The tool Eliminate selected polygonsin QGIS (see second comment here) allows what I have to do. Nevertheless, solutions in R are still appreciated.

Nico
  • 305
  • 2
  • 11