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 committed Sep 28, 2024
1 parent e688fb1 commit 4467993
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 @@ -162,7 +162,8 @@ QList<QgsGdalOption> QgsGdalOption::optionsFromXml( const CPLXMLNode *node )
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 4467993

Please sign in to comment.