1

I want to create a buffer on only one side of a polygon. When I create a buffer in the symbology tab in the layer properties, I get the following result:

enter image description here

I need a buffer that starts at the outline of the polygon and dos not overlap with the yellow filling. I need the result as a .qml file to be able to import it into another feature style.

Blabsl
  • 383
  • 1
  • 2
  • 9
  • single side buffer https://gis.stackexchange.com/questions/289229/creating-flat-end-buffer-using-geometry-generator-in-qgis – Mapperz Dec 17 '19 at 16:22
  • 4
    That looks like it's creating a buffer around a line feature not a polygon feature. Are you sure it's a polygon you're buffering? – TeddyTedTed Dec 17 '19 at 16:22
  • yes, it's a polygon with a transparent filling – Blabsl Dec 18 '19 at 14:40

1 Answers1

2

You should buffer the polygon itself and not its outline.

Add a style geometry generator and not outline: geometry generator and call the buffer function buffer($geometry,0.0001)

enter image description here

JGH
  • 41,794
  • 3
  • 43
  • 89
  • Thanks for your response. I have a transparency of 70% for the inner polygon, so the buffer can be seen. Is there also an option to only display the outer part of the buffer? – Blabsl Jan 07 '20 at 10:04
  • 1
    @Blabsl expand the style to geometry generator/fill/simple fill and then select outline:simple line instead of simple fill – JGH Jan 07 '20 at 12:41