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 nyalldawson committed Sep 30, 2024
1 parent 19f7649 commit 90517a0
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 90517a0

Please sign in to comment.