Skip to content
Permalink
Browse files

Updated file header for geopackage data items

also added "db" to multiple layers extensions
  • Loading branch information
elpaso committed Aug 9, 2017
1 parent 2752510 commit bc921b4a56394153e1c1da2f1a49c46cd6dfaa1f
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/providers/ogr/qgsgeopackagedataitems.h
  2. +2 −2 src/providers/ogr/qgsogrdataitems.cpp
@@ -1,9 +1,9 @@
/***************************************************************************
qgsgeopackagedataitems.h
---------------------
begin : October 2011
copyright : (C) 2011 by Martin Dobias
email : wonder dot sk at gmail dot com
begin : August 2017
copyright : (C) 2017 by Alessandro Pasotti
email : apasotti at boundlessgeo dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
@@ -340,8 +340,8 @@ QGISEXTERN QgsDataItem *dataItem( QString path, QgsDataItem *parentItem )
// Check if the layer has sublayers by comparing the extension
QgsDataItem *item;
QStringList multipleLayersExtensions;
// TODO: add more formats here!
multipleLayersExtensions << QLatin1String( "gpkg" ) << QLatin1String( "sqlite" );
// TODO: add more OGR supported multiple layers formats here!
multipleLayersExtensions << QLatin1String( "gpkg" ) << QLatin1String( "sqlite" ) << QLatin1String( "db" );
if ( ! multipleLayersExtensions.contains( suffix ) )
item = new QgsOgrLayerItem( parentItem, name, path, path, QgsLayerItem::Vector );
else

0 comments on commit bc921b4

Please sign in to comment.
You can’t perform that action at this time.