Skip to content

Commit

Permalink
Treat mdb files as a database source in browser
Browse files Browse the repository at this point in the history
Allows these to be expanded so that particular layers can be loaded,
notably allowing projects with broken mdb layer paths to be repaired
by allowing users to pick the correct target layer from an mdb file.

(cherry picked from commit 463e8ee)
  • Loading branch information
nyalldawson committed Aug 15, 2020
1 parent b63efac commit a117639
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/providers/ogr/qgsogrdataitems.cpp
Expand Up @@ -560,10 +560,12 @@ QgsDataItem *QgsOgrDataItemProvider::createDataItem( const QString &pathIn, QgsD
QStringLiteral( "gdb" ),
QStringLiteral( "kml" ),
QStringLiteral( "osm" ),
QStringLiteral( "mdb" ),
QStringLiteral( "pbf" ) };
static QStringList sOgrSupportedDbDriverNames { QStringLiteral( "GPKG" ),
QStringLiteral( "db" ),
QStringLiteral( "gdb" ) };
QStringLiteral( "gdb" ),
QStringLiteral( "pgdb" )};

// these extensions are trivial to read, so there's no need to rely on
// the extension only scan here -- avoiding it always gives us the correct data type
Expand Down

0 comments on commit a117639

Please sign in to comment.