2

I am working in QGIS 3 and I have a shape file containing many polygons. Several of the polygons have very thin gaps created by the bounding line of the polygon and they do not penetrate the entire width of the polygons - see the attached picture: gaps I have tried several methods to remove these with no success. I have tried the v.clean, remove holes, simplify and generalize functions and none of these were successful

Is there a technique that can be used to remove these gaps?

alkey
  • 155
  • 3
  • Try snap to grid – BERA Nov 05 '21 at 18:07
  • What parameters did you use in v.clean? Is the tolerance you used in v.clean larger than the size of the gap? There is also a snap geometries to layer tool where the parameters are important including snap tolerance and whether vertices can be added. – John Nov 05 '21 at 22:37
  • I tried both setting a threshold and using the default options for v.clean - neither worked for removing these thin gaps – alkey Nov 08 '21 at 13:21

1 Answers1

0

Apply a buffer with a size that it covers the hole. Than apply another buffer with the same, but negative value.

Babel
  • 71,072
  • 14
  • 78
  • 208
  • I don’t really recommend doing this – Taras Nov 05 '21 at 18:04
  • Why not? Because geometry might change? – Babel Nov 05 '21 at 18:36
  • Ja genau. Check this: https://gis.stackexchange.com/questions/291093/dissolving-neighbour-bordering-polygon-features-in-qgis – Taras Nov 05 '21 at 18:46
  • 1
    I would say it heavily depends on the data and the needs - what you want to achieva and what requirements there are for precision. – Babel Nov 05 '21 at 21:08
  • 1
    So far this approach works. For my purpose the geometries do not need to be highly accurate. A small buffer is acceptable. – alkey Nov 08 '21 at 13:22
  • 1
    If it works and you don't need high precision, then I would stick with the method - quick and dirty, so to say... – Babel Nov 08 '21 at 13:26