Skip to content
Permalink
Browse files
[ogr] Automatically read and convert metadata from ESRI Personal Geod…
…atabases

Requires GDAL 3.4+
  • Loading branch information
nyalldawson committed Aug 25, 2021
1 parent 91e3d8a commit 6369c08d3652aea1d88dd22b5e2d029193d0460e
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/core/providers/ogr/qgsogrprovider.cpp
@@ -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();

0 comments on commit 6369c08

Please sign in to comment.