Save Raster Layer as: do not propose PDF as possible format, which is not supported

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

Refs #58891
This commit is contained in:
Even Rouault 2024-09-28 02:58:15 +02:00 committed by Nyall Dawson
parent e74bb60ad4
commit 98de62cc7a

View File

@ -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;