Geographic Information Systems Asked on June 18, 2021
I’ve added a Mapbox WMTS layer to my QGIS project.
However when I use the print composer and export my map the result is blurry / not sharp. The image in the print composer itself is sharp, it is only after export that the problems occur. Any idea how to solve this? I’ve also tried exporting as PDF but the result is the same low quality.
I also tried increasing DPI and total number of pixels but the results are disappointing.
The Mapbox WMTS endpoint only supports @1x resolution, but in QGIS 3 you can add an XYZ Tiles source and use the @2x resolution Mapbox tiles. Something like
https://api.mapbox.com/styles/v1/USERNAME/STYLE_ID/tiles/256/{z}/{x}/{y}@2x?access_token=ACCESS_TOKEN
If you're happy for your icon/text to become smaller you can get even more resolution by requesting 512 @2x tiles instead of 256 tiles
https://api.mapbox.com/styles/v1/USERNAME/STYLE_ID/tiles/512/{z}/{x}/{y}@2x?access_token=ACCESS_TOKEN
Answered by AndrewHarvey on June 18, 2021
Not exactly the same context, but I've beat my head against a wall with WM(T)S print quality and symbol/font size issues arising from different screen and print layout DPI, though it wasn't Mapbox as a source.
As a workaround, I've exported (Export / Save as...
) the layer as a raster over my whole ROI, manually setting the resolution to correspond to the correct one for the target zoom layer (or fiddling with it to get the symbol/font sizes I wanted). Then I use my locally saved raster in lieu of the original layer in my print layout.
There are downsides, of course, but especially if your print area stays constant, it may be more efficient in terms of your time.
Starting with QGIS 3.14, you could also use vector tiles if you're using a standard source map. See https://www.maptiler.com/news/2020/06/vector-tiles-in-qgis-3-14/, though cost may be prohibitive.
Answered by Houska on June 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP