Vector Tile Layers do not clip to layout map frame when mask enabled #52347
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
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
Some output examples with the page color set to orange and the map frame as a thick black line:
![Without Mask](https://user-images.githubusercontent.com/15817745/227035410-7a51fbb7-8242-4fa9-bf6c-3a4195826f62.png)
![With Mask](https://user-images.githubusercontent.com/15817745/227035469-6f5857d1-7302-4f1b-b2c5-16f77641dec9.png)
Without Mask (expected output):
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
New 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
The text was updated successfully, but these errors were encountered: