Skip to content

Commit

Permalink
Updated file header for geopackage data items
Browse files Browse the repository at this point in the history
also added "db" to multiple layers extensions
  • Loading branch information
elpaso committed Aug 9, 2017
1 parent 2752510 commit bc921b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/providers/ogr/qgsgeopackagedataitems.h
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrdataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc921b4

Please sign in to comment.