Skip to content

Commit

Permalink
Allow more file types to be expanded in the browser
Browse files Browse the repository at this point in the history
Allows for
- xls(x)
- ods
- gpx
- accdb

Files to be expanded in the browser. This permits map layers with these
file types to be repaired or changed via the browser interface when
they have to link to a specific child layer from the file.
  • Loading branch information
nyalldawson committed Oct 15, 2020
1 parent f8aafda commit 252976b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/providers/ogr/qgsogrdataitems.cpp
Expand Up @@ -624,11 +624,17 @@ QgsDataItem *QgsOgrDataItemProvider::createDataItem( const QString &pathIn, QgsD
QStringLiteral( "kml" ),
QStringLiteral( "osm" ),
QStringLiteral( "mdb" ),
QStringLiteral( "accdb" ),
QStringLiteral( "xls" ),
QStringLiteral( "xlsx" ),
QStringLiteral( "gpx" ),
QStringLiteral( "pdf" ),
QStringLiteral( "pbf" ) };
static QStringList sOgrSupportedDbDriverNames { QStringLiteral( "GPKG" ),
QStringLiteral( "db" ),
QStringLiteral( "gdb" ),
QStringLiteral( "xlsx" ),
QStringLiteral( "xls" ),
QStringLiteral( "pgdb" )};

// these extensions are trivial to read, so there's no need to rely on
Expand Down

0 comments on commit 252976b

Please sign in to comment.