Project: QGIS

Version: 3.16

Feature: Add options to dynamically tweak dash pattern in simple line symbol layers

Options have been added to allow the tweaking of dash patterns to allow more control for improving the rendered quality of line symbols. These options include:

  • Align dash pattern to line length: If checked, the dash pattern lengths will be subtly adjusted in order to ensure that when a line is rendered it will end with a complete dash element, instead of a gap element or partial dash element.

  • Tweak dash pattern at sharp corners: If checked, this option dynamically adjusts the dash pattern placement so that sharp corners are represented by a full dash element coming into and out of the sharp corner. It's designed to better represent the underlying geometry while rendering dashed lines, especially for jagged lines.

The following images illustrate the "Align dash pattern to line length" change in action, with yellow lines indicating the true start and end position of the line features being symbolised.

Before:

After:

This feature was funded by Kanton Solothurn

This feature was developed by Nyall Dawson