I'm trying to combine the features from a layer in QGIS by distance. Basically I have the following layer with some features.
I wanted to remove the small gaps (as seen in below image) between them.
But I'm not finding a way to resolve this, I already tried the solutions from this answer -> https://gis.stackexchange.com/a/69509/205547 but it doesnt seems to work. I also tried to use the v.clean function, but that also didn't work.
Basically the layer would be filled like the bellow image if I removed the gaps by a certain distance.
Is there a way to remove those gaps by certain threshold?
edit 1:
So i was playing with @Maximilien jaffrès answer and got some interesting results using the Buffer. I measured a distance between two features and tried to use that distance as a parameter to "join" them.
I got what i was looking for but the outer boundaries changed as seen below.
In that case the "outer" boundaries should remain the same and the "inner" boundaries should get snapped.
Even though @BERA answer would work perfectly, it would take more time to achieve in cases where there be more features (usually the user import a file with 2-5 groups of multiple features).
Considering that i gave a shot at @MrXsquared answer and i got a good result as seen below.
Some outer boundaries got changed as well, but with that i can simply merge the original with the snapped, apply a v.clean and dissolve them, the result is the below.