Skip to content

Commit

Permalink
Merge pull request #60153 from elpaso/replace-deprecated-OGR_Dr_GetName
Browse files Browse the repository at this point in the history
Replace OGR_Dr_GetName with GDALGetDescription
  • Loading branch information
rouault authored Jan 15, 2025
2 parents b7b9451 + 9374da8 commit 1b3c7d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@ QStringList multiLayerFormats()
const QSet< QString > splitExtensions = qgis::listToSet( driverExtensions.split( ' ', Qt::SkipEmptyParts ) );
if ( splitExtensions.intersects( multiLayerExtensions ) )
{
driverNames << OGR_Dr_GetName( driver );
driverNames << GDALGetDescription( driver );
}
}
return driverNames;
Expand Down Expand Up @@ -3872,7 +3872,7 @@ QList< QgsVectorFileWriter::FilterFormatDetails > QgsVectorFileWriter::supported
OGRSFDriverH drv = OGRGetDriver( i );
if ( drv )
{
const QString drvName = OGR_Dr_GetName( drv );
const QString drvName = GDALGetDescription( drv );

if ( options & SupportsMultipleLayers )
{
Expand Down Expand Up @@ -3995,7 +3995,7 @@ QList< QgsVectorFileWriter::DriverDetails > QgsVectorFileWriter::ogrDriverList(
OGRSFDriverH drv = OGRGetDriver( i );
if ( drv )
{
const QString drvName = OGR_Dr_GetName( drv );
const QString drvName = GDALGetDescription( drv );

if ( options & SupportsMultipleLayers )
{
Expand Down Expand Up @@ -4492,7 +4492,7 @@ QgsVectorFileWriter::EditionCapabilities QgsVectorFileWriter::editionCapabilitie
gdal::ogr_datasource_unique_ptr hDS( OGROpen( datasetName.toUtf8().constData(), TRUE, &hDriver ) );
if ( !hDS )
return QgsVectorFileWriter::EditionCapabilities();
QString drvName = OGR_Dr_GetName( hDriver );
const QString drvName = GDALGetDescription( hDriver );
QgsVectorFileWriter::EditionCapabilities caps = QgsVectorFileWriter::EditionCapabilities();
if ( OGR_DS_TestCapability( hDS.get(), ODsCCreateLayer ) )
{
Expand Down

0 comments on commit 1b3c7d9

Please sign in to comment.