Bug report #18135

Point Pattern Fill issue in canvas rendering and exporting images

Added by Geo Dev over 2 years ago. Updated almost 2 years ago.

Status:Open
Priority:High
Assignee:-
Category:Symbology
Affected QGIS version:3.5(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26028

Description

The horizontal and vertical distances in Point Pattern Fill are not always regular when set in map units. At certain map scales, the markers are misaligned and the pattern distances progressively increase from the upper-left area to the lower-right area.

Open the attached vector layer with the associated style to replicate the issue.

The layer contains a square polygon filled with a style composed of:
- a Line Pattern Fill with spacing=100 map units and rotation=0° (horizontal lines);
- a Line Pattern Fill with spacing=100 map units and rotation=90° (vertical lines);
- a Point Pattern Fill of circular markers with the same spacing of the line patterns (horizontal and vertical distance=100 map units).

The two line patterns draw a regular grid and the markers should be exactly placed at the intersections of the horizontal and vertical lines. Instead, at certain zoom levels (e.g. change the map scale starting from 1:500 with step=50: 1:550, 1:600, 1:650 ...), they are quite aligned to the grid in the upper-left area but they become increasingly misaligned going to the lower-right area.
The misalignment of the point pattern with respect to the other two line patterns inhibits the making of a regular composite pattern.

The same issue also occurs in pdf/images exported with the Print Layout. Exporting the map e.g. with resolution=100dpi, the markers are not aligned to the grid even when they are rendered as expected in the canvas (the issue would seem not to occur exporting with resolution=300dpi).

The issue is OS independent and it's occurs both in QGIS 2.99.0 and QGIS 2.18.16.

test.geojson (324 Bytes) Geo Dev, 2018-02-18 07:25 PM

test.qml (2.22 KB) Geo Dev, 2018-02-18 07:25 PM

History

#1 Updated by Giovanni Manghi over 2 years ago

  • Affected QGIS version changed from master to 2.99(master)

#2 Updated by Geo Dev over 2 years ago

The issue still occurs in QGIS 3.0 and QGIS 3.1(master).

#3 Updated by Giovanni Manghi over 2 years ago

  • Affected QGIS version changed from 2.99(master) to 3.1(master)

#4 Updated by Geo Dev almost 2 years ago

The issue still occurs in QGIS 3.4.1 and QGIS 3.5(master).

#5 Updated by Giovanni Manghi almost 2 years ago

  • Affected QGIS version changed from 3.1(master) to 3.5(master)

Also available in: Atom PDF