I'm trying to export a PDF of a map of northern Europe.
- I load a high detail shp (https://www.naturalearthdata.com/downloads/10m-physical-vectors/)
- Zoom to the area I want (British Isles, North Sea, parts of Norway)
- Create a map in the print composer
- Export to PDF
The resulting PDF file is missing the British Isles and smaller islands. This does not occur if I use a lesser detail shp (https://www.naturalearthdata.com/downloads/50m-physical-vectors/). I have also tried reducing the DPI settings (although that shouldn't matter for a vector) to no avail.
I'm using QGIS version 3.4.5-Madeira 64-bit on a Win10 64-bit machine. The problem also occurred when using QGIS 3.6.
Best Answer
There's a lot of useful information in the comments, which I summarize here so it doesn't get buried. Credit to @Mapperz and @Juan.
Adobe products have a limit of 32,768 vertices (16 bit limit?). The limit was reached in this situation because of a vector layer with
QGIS doesn't crop the data to the map extent when exporting to pdf, so the vertices outside the map extent still count towards the total number of vertices. I made a feature request.
The current solution is to reduce the number of vertices before exporting. Starting with the layer with the most vertices, apply these methods until the output falls below the 32,768 vertex limit.
Use the
Simplify
algorithm to reduce the vertex density. This method will alter the data within the map extent.A workaround would be to export as raster instead of vector. Rasters don't have vertices, so the 32,768 vertex limit doesn't apply.
These questions remain unanswered: