Skip to content

Commit

Permalink
[layouts] Prevent GeoPDF exports when map items are rotated
Browse files Browse the repository at this point in the history
(This is not supported in GDAL GeoPDF creation)

Fixes #34438
  • Loading branch information
nyalldawson committed Jun 8, 2020
1 parent 777c75b commit 834204f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 834204f

Please sign in to comment.