Skip to content
Permalink
Browse files

[layouts] Prevent GeoPDF exports when map items are rotated

(This is not supported in GDAL GeoPDF creation)

Fixes #34438
  • Loading branch information
nyalldawson committed Jun 8, 2020
1 parent 777c75b commit 834204fd94fdf40d042c9151d36fea739542d2c3
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -4367,6 +4367,13 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
geoPdfReason = tr( "One or more map items do not have a valid CRS set. This is required for GeoPDF export." );
break;
}

if ( map->mapRotation() != 0 || map->itemRotation() != 0 )
{
allowGeoPdfExport = false;
geoPdfReason = tr( "One or more map items are rotated. This is not supported for GeoPDF export." );
break;
}
}

QgsLayoutPdfExportOptionsDialog dialog( this, allowGeoPdfExport, geoPdfReason );

0 comments on commit 834204f

Please sign in to comment.
You can’t perform that action at this time.