From aa1d199ca917f5d73cf2807208fd8e9d40e9c59a Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 23 Sep 2020 17:06:09 +1000 Subject: [PATCH] Treat GeoPDF files as databases in browser panel Since these can have multiple sub layers, we need to allow users to expand them out to pick a specific layer or it is not possible to repair broken GeoPDF layer sources in projects. --- src/core/providers/ogr/qgsogrdataitems.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/providers/ogr/qgsogrdataitems.cpp b/src/core/providers/ogr/qgsogrdataitems.cpp index f02b55326779..7112acc53145 100644 --- a/src/core/providers/ogr/qgsogrdataitems.cpp +++ b/src/core/providers/ogr/qgsogrdataitems.cpp @@ -619,6 +619,7 @@ QgsDataItem *QgsOgrDataItemProvider::createDataItem( const QString &pathIn, QgsD QStringLiteral( "kml" ), QStringLiteral( "osm" ), QStringLiteral( "mdb" ), + QStringLiteral( "pdf" ), QStringLiteral( "pbf" ) }; static QStringList sOgrSupportedDbDriverNames { QStringLiteral( "GPKG" ), QStringLiteral( "db" ),