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

Vector Tile Layers do not clip to layout map frame when mask enabled #52347

Closed
2 tasks done
baswein opened this issue Mar 22, 2023 · 1 comment
Closed
2 tasks done

Vector Tile Layers do not clip to layout map frame when mask enabled #52347

baswein opened this issue Mar 22, 2023 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) Vector tiles

Comments

@baswein
Copy link
Contributor

baswein commented Mar 22, 2023

What is the bug or the crash?

When a mask is enabled on a vector layer Vector Tile layers (tried ArcGIS and Maptiler layers) do not clip correctly to the map frame edge when exporting as a png, pdf, or svg.
It does not seem to matter if I have Always Export as Vectors enabled or disabled. This is the work around described in #49638 and #48624. This might be the same issue but it seemed different enough to make a new issue and let you decide. Thanks

Steps to reproduce the issue

  1. Add a vector tile layer
  2. Add a vector layer and turn on labels and enable masks
  3. Make a layout and add a map with space on the edge of the page.
  4. Export as a png
  5. Observe that the tiles are not clipped to the map frame boarder

Some output examples with the page color set to orange and the map frame as a thick black line:
Without Mask (expected output):
Without Mask
With Mask:
With Mask
Here is a sample dataset:Vector_Tiles_Issue.zip

Versions

QGIS version
3.30.0-'s-Hertogenbosch
QGIS code revision
f186b8e
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.6.2
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.39.4
PDAL version
2.4.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

Some PDF's with and without masks and always export as vector:
Without Mask.pdf
With Mask.pdf
With Mask always export as vector.pdf

@baswein baswein added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 22, 2023
@agiudiceandrea agiudiceandrea added Vector tiles Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels Mar 27, 2023
@troopa81
Copy link
Contributor

Thank you for reporting this issue, but I really do think this is the same as #49638 and #48624

If you know someone willing to fund this, we can try to contact someone close to the Qt project to fix it in Qt. If so, please contact me at julien dot cabieces at oslandia dot com

@troopa81 troopa81 added the Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) label Jun 15, 2023
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! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) Vector tiles
Projects
None yet
Development

No branches or pull requests

3 participants