# How to create space buffer between touching boundary polygon

I have some polygons that share common boundary. I want to create some small space buffer between it, so no polygon has shared the same boundary. Is there any way to do it instead of manual adjust the polygon? The picture describe what I want. I'm using QGIS or FME to do it.

• You could buffer the polygons by a very small negative amount which will result in a small gap between adjacent polygons and only a minor difference where there is no adjacent polygon - simplest case where the other boundaries don't need to be in the same place. Commented Feb 10, 2021 at 4:43
• Just to confirm, the dimensions show 100m as the full extent for both. Where does the extra space come from? Do the rectangles stay the same size and just equally shift away from each other? Or are the rectangles losing width? And they are all the same shape correct?
– Rex
Commented Feb 10, 2021 at 5:04
• @Rex the rectangles will losing the width. So, the changes would be on part of boundary that touch each other only (not all). And the polygons come in different size and shape. Commented Feb 10, 2021 at 5:53

Starting with a polygon layer A:

Dissolve polygon layer A -> Polygon layer B

Buffer B by a tiny negative amount -> Polygon layer C

Zoomed right in you can see the difference:

Convert polygon layer A to Lines -> Line layer D

This looks the same as the original polygons but its represented by lines which means we can cut lines out of it:

Intersect Line layer D with Polygon layer C -> Line layer E

Layer E is now just the shared borders of your original polygons minus the "tiny negative amount" at each external edge. That "tiny amount" should be much smaller than your desired separation distance, and really only has to be enough to be mathematically inside your external border.

Buffer Line layer E by your desired separation distance -> Polygon layer F

Difference original polygon layer A with polygon layer F -> Polygon layer G

Layer G is the final result.

This could be made into a Graphical Model in the QGIS Toolbox.

• oh wow..thank you for share the solution. it's really make sense. Commented Feb 10, 2021 at 13:10