Skip to content

Commit

Permalink
[ogr] Automatically read and convert metadata from ESRI Personal Geod…
Browse files Browse the repository at this point in the history
…atabases

Requires GDAL 3.4+
  • Loading branch information
nyalldawson committed Aug 25, 2021
1 parent 91e3d8a commit 6369c08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -1112,9 +1112,14 @@ void QgsOgrProvider::loadMetadata()
}
}
}
else if ( ( mGDALDriverName == QLatin1String( "FileGDB" ) || mGDALDriverName == QLatin1String( "OpenFileGDB" ) ) )
else if ( mGDALDriverName == QLatin1String( "FileGDB" )
|| mGDALDriverName == QLatin1String( "OpenFileGDB" )
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,4,0)
|| mGDALDriverName == QLatin1String( "PGeo" ) // supported on GDAL 3.4+ only
#endif
)
{
// read ESRI FileGeodatabase layer metadata
// read ESRI FileGeodatabase/Personal Geodatabase layer metadata

// important -- this ONLY works if the layer name is NOT quoted!!
QByteArray sql = "GetLayerMetadata " + mOgrOrigLayer->name();
Expand Down

0 comments on commit 6369c08

Please sign in to comment.