Skip to content

Commit

Permalink
Save Raster Layer as: do not propose PDF as possible format, which is…
Browse files Browse the repository at this point in the history
… not supported

The PDF driver only supports 'random' creation for vectors, not raster.
For raster, it only supports CreateCopy() mode

Refs #58891
  • Loading branch information
rouault authored and github-actions[bot] committed Sep 29, 2024
1 parent 95b60c4 commit b2abfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsgdalutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
bool QgsGdalUtils::supportsRasterCreate( GDALDriverH driver )
{
const QString driverShortName = GDALGetDriverShortName( driver );
if ( driverShortName == QLatin1String( "SQLite" ) )
if ( driverShortName == QLatin1String( "SQLite" ) ||
driverShortName == QLatin1String( "PDF" ) )
{
// it supports Create() but only for vector side
return false;
Expand Down

0 comments on commit b2abfa3

Please sign in to comment.