2

I have some issue with importing PDF or SVG files generated in QGIS 3.16 Hannover (with the option to export everything as vectors, no compression, no optimization for smaller file size, incl. all layers, attributes etc.)

In this particular case, I used a digital terrain model to generate a layer of 19 different contour polygons from 0 to 4500 meters in 250 m steps with different shades of grey. In QGIS 3.16 everything appears to be just as I want it. I use the "new print layout" option to generate a map and exporte to SVG or PDF. If I just open the GeoPDF file in a standard PDF reader it looks like this, which is what I want (it's a random section of the original PDF).

enter image description here

However, importing and opening the same file in Adobe Illustrator gives me something completely unusable:

enter image description here

The same goes for the SVG files, just some unrecognizable garbage.

Any ideas what is going on and how to import a svg/pdf file into Adobe Illustrator with the layer and attributes correctly incorporated? I.e. in this case the 19 different contour polygons with altitude and color info, so that I can continue processing it in AI.

  • 3
    Illustrator has a limit of 60,000 vertices... see https://gis.stackexchange.com/questions/142396/parts-of-geometry-disappearing-in-qgis-export-to-illustrator-pdf/143210 – Mapperz Mar 01 '21 at 04:11
  • 1
    Thanks Mapperz, that is very helpful. Is it possible to calculate/check how many vertices there are in the vector layer? I tried to simplify the geometries but I am not sure how much simplification is needed other than trial and error. I chose a tolerance of 100m and the result is better in AI but still not great. – Matthias Ihl Mar 02 '21 at 09:05
  • you can create a field and count them if polygon/line https://gis.stackexchange.com/questions/32445/counting-number-of-vertices-of-polygons-and-lines-in-qgis – Mapperz Mar 02 '21 at 14:50

0 Answers0