[GIS] Designing Borders with QGIS

borderscartographyqgis

My task is to reproduce a map of a specific place. The problem are the borders which I can´t reproduce in QGIS.

The attached picture shows the line. It looks like a polygon filled with slashes.

d

Any ideas how I could reproduce this?

Best Answer

Option 1 - Quickest way

There is actually a quite immediate way to obtain that effect:

  • double click on the layer you want to style (in your case the border layer)
  • under Symbology select Hashed line
  • play around with the settings. To obtain something similar to the example of the question, set Rotation to 45° (or -45°)

image showing how to set a hatched border for a polygon in QGIS

Option 2 - Quick way

Always through a style-based only approach, a more refined way is to:

  • use the Geometry generator feature of QGIS to create a buffer at render time (I just set this to Polygon/MultiPolygon, then buffer($geometry,55)),
  • fill it with a light background
  • add a hashed fill

Much nicer effect, IMHO:

enter image description here

details about the hash filling enter image description here