Feature request #21444
crop data to map extent when exporting to vector PDF
Status: | Feedback | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Map Composer/Printing | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 29261 |
Description
When exporting to a vector pdf, the map layers are apparently not cropped to the map extent. So with a very detailed, world-wide vector layer, you can hit Adobe's 32,768 vertex limit. As a result, some features are (apparently randomly) excluded from the exported pdf.
That was the case in this question (https://gis.stackexchange.com/questions/314068/qgis-print-composer-incomplete-pdf-export) posted on GIS stackexchange, with a high-detail (10m) physical vector layer from Natural Earth. A pdf export of Northern Europe excluded certain islands, including Great Britain.
GIS SE user Juan (https://gis.stackexchange.com/users/137934/juan) commented: "When importing the "incomplete" map into Inkscape and using the path editing tool one can notice that there are many hidden vertices. Apparently what the print composer does is to add a mask to the part of the shp files that are not in the canvas. I suppose, then, that it prioritise certain polygons until it reaches the maximum allowable vertex count. Cropping the shp file seems to delete the unnecessary vertices, instead."
Would it be possible to crop the vector data to the exported map extent, instead of just masking it?
History
#1 Updated by Nyall Dawson over 5 years ago
- Status changed from Open to Feedback
This is already done by default, with a crop area a but larger than the map area to avoid drawing non existent polygon borders on the edges of maps. The setting can be disabled, but not by default.