Open wanderingnature opened 1 year ago
Documentation used: https://docs.qgis.org/3.22/en/docs/user_manual/introduction/qgis_gui.html#exportingmapcanvas There is no mention of any limitation regarding rotation of the map view.
The issue also occurs on Windows using QGIS 3.28.2 (and previous version like 3.22 / 3.16 / 3.10) if:
@wanderingnature thanks for reporting.
For a Print Layout, the export as a Geospatial PDF is disabled if one or more map items are rotated. So it should be disabled also in the map canvas export dialog.
I think this issue could be fixed in a similar way as in layout with https://github.com/qgis/QGIS/commit/834204fd94fdf40d042c9151d36fea739542d2c3 (https://github.com/qgis/QGIS/pull/36989) by @nyalldawson.
What is the bug or the crash?
Project -> Import/Export -> Export Map to PDF does not work when the view is rotated
I have tested various projects and find consistent behavior unrelated to whether vector or raster layers are to be exported, scale of map, resolution of map, etc...
If I have the Map View as not rotated, e.g. 0° then export as georeferenced PDF works as expected. If the map view is rotated even 1° then the export fails.
This is not documented behavior and thus I would consider it a bug - or change the documentation to reflect this limitation. I do not have other versions to test on - I am on 3.28.2 / Mac Mojave 10.14.6
Steps to reproduce the issue
Any vector or raster layer in map view window rotate the view an amount, I tested 1°, 15°, 90° Project -> Import/Export -> Export Map regardless of scale, resolution, or other settings - check Create Geospatial PDF (GeoPDF)
RESULT: Save as PDF: Could not save the map to PDF error
Rotate the map view to 0° regardless of scale, resolution, or other settings - check Create Geospatial PDF (GeoPDF) RESULT: map saves correctly
Versions
QGIS version 3.28.2-Firenze QGIS code revision b47e00ba60 Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.2 PROJ version 8.1.1 EPSG Registry database version v10.028 (2021-07-07) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.11.5 OS version macOS Mojave (10.14)
Active Python plugins numericalDigitize 0.4.7 slyr_community 4.0.6 QuickOSM 2.1.1 profiletool 4.2.2 joinmultiplelines Version 0.4.1 lines_ranking 1.0 quick_map_services 0.19.32 Hy2roresO-master 0.0.1 DEMto3D 3.51 LAStools 1.4 SRTM-Downloader 3.1.17 GarminCustomMap 3.4.2 HCMGIS 22.9.9 latlontools 3.6.7 qfieldsync v4.2.0 Group_and_Sort_Layers 1.2 Qgis2threejs 2.7.1 qgiscloud 3.7.1 qgis_resource_sharing 1.0.0 pointsamplingtool 0.5.4 GroupStats 2.2.6 qtiles 1.7.1 processing 2.12.99 sagaprovider 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6
Supported QGIS version
New profile
Additional context
No response