Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point Pattern Fill issue in canvas rendering and exporting images #26028

Open
qgib opened this issue Feb 18, 2018 · 7 comments
Open

Point Pattern Fill issue in canvas rendering and exporting images #26028

qgib opened this issue Feb 18, 2018 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Feb 18, 2018

Author Name: Geo Dev (Geo Dev)
Original Redmine Issue: 18135
Affected QGIS version: 3.5(master)
Redmine category:symbology


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.


@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2018

Author Name: Giovanni Manghi (@gioman)


  • version was changed from master to 2.99(master)

@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2018

Author Name: Geo Dev (Geo Dev)


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

@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2018

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 2.99(master) to 3.1(master)

@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2018

Author Name: Geo Dev (Geo Dev)


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

@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2018

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.1(master) to 3.5(master)

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Symbology Related to vector layer symbology or renderers labels May 25, 2019
@pjshelton
Copy link

pjshelton commented Feb 10, 2021

see #28910 for a linear version of this bug.

Both are likely related to #26749

@Pedro-Murteira
Copy link

Still an issue on QGIS 3.22.3. (Windows 10). The grid only appears to be correct above 1:640 map scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

4 participants