QGIS Symbology – Creating Point Fill That Exceeds Polygon Boundaries

fillpolygonqgisqgis-3symbology

My question starts off here: Creating random point polygon fill symbology in QGIS?

In addition to the random point pattern fill of a polygon, I want my points not to be clipped by the polygon boundary. How do I go about that?

Currently, my layout looks like this:

enter image description here

I want the trees to exceed the outer boundary like they would in real life.

I've seen this script here (https://gis.stackexchange.com/a/337774/200736), which seems to be a starting point but my understanding of the syntax is too poor to see where I exactly I would need to make the necessary changes.

Best Answer

Solved it myself (at least sufficiently for me):

I added a symbol layer to my polygon and changed it to 'Marker Line'. Then I changed the Marker to 'SVG Marker' with a size of 8 Meters at scale and chose my tree symbol. In the 'Marker Line' section 'Marker placement', I activated a data defined override and changed the interval with the following expression:

randf(3, 8) - for a random interval between 3 and 8 map units (in my case, meters).

Looks like this now:

enter image description here

Of course, I could still optimize the randomization and also randomize the size of my outline tree symbols.

Related Question