35 Commits

Author SHA1 Message Date
Even Rouault
2c1356cd1d [DBManager] Remove geopackage support from spatialite plugin 2016-10-18 20:08:27 +02:00
nirvn
20d006e101 [db manager] fix spatialite error reporting 2016-10-07 12:07:55 +07:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Mathieu Pellerin
cd1d44be9d [db manager] python3 support (#3512) 2016-09-20 09:34:36 +02:00
Hugo Mercier
5c3a43e286 Fix spatialite access with python3 2016-09-05 13:43:00 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Juergen E. Fischer
1f0fce7852 db manager: fix drag and drop import (fixes #13712) 2016-06-22 12:35:17 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
c55f8b73f0 db_manager: cleanups 2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Martin Dobias
63be2e5303 Fix DB manager to work with SpatiaLite < 4.2 2016-02-23 16:39:30 +08:00
Michael Douchin
bae865153f [bugfix][DbManager] 14110 - Error fetching layer indexes with recent sqlite version
Fixes #14110

The method `getTableIndexes`, situated in line 371 of the file `db_manager/db_plugins/spatialite/connector.py`,
expected to get 3 fields from the sqlite method `PRAGMA index_list` .
In recent versions of SQLite, since 3.8.9, though, this method now returns 5 fields.
This commit fixes this issue by checking the length of columns returned by the method.
2016-01-19 10:27:52 +01:00
Giuseppe Sucameli
03916d549a [DBManager] add SL/Geopackage connection by drag&drop (follow b11f67b4f5), improve GPKG support:
- recognize tables with geometry,
- load GPGK layers to canvas from context menu,
- disable table editing
2015-09-03 01:22:54 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Juergen E. Fischer
a6c3de3047 db_manager: properly parse sqlite version (followup 5b86e38) 2015-07-11 23:42:46 +02:00
Juergen E. Fischer
5b86e38676 db_manager: only try isgpkg on spatialite plugin and sqlite version parsing 2015-07-11 23:24:13 +02:00
Cedric Christen
4420b3bf99 Drag&Drop support for GeoPackage layers 2015-06-26 16:35:31 +02:00
Hugo Mercier
e440dee1bd [DBManager] Add a 'create view' button 2015-05-04 17:19:21 +02:00
Hugo Mercier
4876e7a2be [DBManager] Integrate QSpatialite's query builder 2015-05-04 17:19:09 +02:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Nathan Woodrow
297a94fc58 Fix formatting of db manager python code 2015-03-21 20:35:29 +10:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
Marcel Dancak
b9f8176e66 db_manager: do not display index tables when browsing SpatiaLite databases 2014-11-28 10:12:26 +01:00
Juergen E. Fischer
b9ada4c2d4 dbmanager: fix spatialite connection error message 2013-07-16 12:18:30 +02:00
Juergen E. Fischer
558fe92eb1 dbmanager: adapt to sl4 metadata tables (fixes #8290) 2013-07-13 22:53:51 +02:00
Giuseppe Sucameli
49970b0413 DBManager: more SIP API update (fix #8132) 2013-06-23 00:03:26 +02:00
Juergen E. Fischer
f0c605e0fa dbmanager: add i18n 2013-06-09 18:51:47 +02:00
Giuseppe Sucameli
c203990ceb fix #6842 2012-12-10 01:32:31 +01:00
Juergen E. Fischer
9721736fd8 remove trailing blanks 2012-12-10 00:12:07 +01:00
Giuseppe Sucameli
796a15ac9d dbmanager: use a default value for varchar limit (follow a4484b217ed) 2012-11-29 01:16:32 +01:00
Giuseppe Sucameli
a4484b217e dbmanager: fix #6511 2012-11-28 18:36:57 +01:00
Giuseppe Sucameli
bcb038504e identifiers (schemas, tables, fields) added to DBManager sql windows completer list.
Thanks Silvio Grosso for the sponsorship.
2012-08-27 17:17:45 +02:00
Giuseppe Sucameli
2278f4074a do a case-insensitive check looking for SL tables into geometry_columns 2012-07-16 00:48:09 +02:00
Giuseppe Sucameli
3c5b3bbea1 [FEATURE] add DB Manager plugin 2012-04-16 13:31:13 +02:00