363 Commits

Author SHA1 Message Date
Sandro Santilli
a01db6409c Have TopoViewer use custom layer ordering
This is used to make sure edges are rendered above faces and nodes
above edges, despite legend order.
2019-09-06 08:46:53 +02:00
Sandro Santilli
d921c20f58 Add support for "bbox" URI parameter in PostgreSQL provider
.. and use it from TopoViewer DBManager plugin

Closes #18107
2019-08-29 17:47:25 +02:00
Sandro Santilli
8cc683061c Update TopoViewer layer style templates
From 1.9 version to 2.18 version

Closes #31471
2019-08-29 16:36:55 +02:00
Alessandro Pasotti
fad258e37a
Merge pull request #31319 from elpaso/db_interface_new_constructors
New ctors for connections interface
2019-08-22 09:03:17 +02:00
Sandro Santilli
ae0721891b Restore TopoViewer functionality
This was broken in commit d7166404030292b9536e649795e9efec49225dfd
2019-08-21 17:27:48 +02:00
Alessandro Pasotti
a092a82b52 New ctors for connections interface
Tries to make it clearer what are the use cases for the two
constructors (name and uri).
2019-08-21 15:45:21 +02:00
Alessandro Pasotti
a3c4eb9947
Providers connections interface API
This is the implementation of the new DB connections API (grant proposal 2019).
Summary

The new API makes it available to QGIS core a new interface for provider connections and will allow to:

    replace the provider specific QgsSettings management in QGIS4 (save/load connections from the settings) NOT IN SCOPE FOR NOW.
    provide a unified API for common operations on DB connections:
        executeSql and get the results
        list tables names and properties and schemas
        create a new vector table (no rasters for now)
        create/rename/drop schemas and tables
        vacuum
       ....
2019-08-16 20:44:05 +02:00
Matthias Kuhn
bd61fa55e7 Do not specify srid in dbmanager. It goes crazy
If srid is specified in an uri, it disables type detection.

Fix #30787
2019-08-02 13:12:18 +02:00
rldhont
7362faca02 [Bugfix] DB Mananger: Fix in Oracle plugin the way to strip uniqueCol 2019-07-15 10:37:36 +02:00
Matthias Kuhn
c3e6b7236d
Update python/plugins/db_manager/db_plugins/postgis/connector.py
Co-Authored-By: Etienne Trimaille <gustrimaille@yahoo.fr>
2019-06-25 08:45:24 +02:00
Matthias Kuhn
95f63ec3b8 [dbmanager] Fix use before assign 2019-06-24 14:51:59 +02:00
olivierdalang
395486b694 fix #30260 2019-06-22 00:26:00 +02:00
Matthias Kuhn
24e56a810c
Merge pull request #30176 from jgrocha/redmine2github
References to issues.qgis.org updated
2019-06-17 11:34:12 +02:00
Matthias Kuhn
83c8b5bf16
Merge pull request #30173 from olivierdalang/dbmanager_fix_generic_geom
[dbmanager] allow to import GEOMETRY tables
2019-06-12 09:54:57 +02:00
Jorge Gustavo Rocha
38c8e757aa References to issues.qgis.org updated 2019-06-12 00:10:43 +01:00
olivierdalang
86f8bdb0aa [dbmanager] allow to import GEOMETRY tables
UI is similar to the browser, where generic geometry tables
are display several times, one for each type.
2019-06-05 17:46:57 +02:00
Alexander Bruy
b489c21b58 [dbmanager] add promary key to the view created by versioning plugin
(fix #25888)
2019-05-31 14:55:35 +03:00
Alexander Bruy
03abf0e42b [db_manager] apply comment to the correct column when altering table
column (fix #21425)
2019-05-23 15:43:14 +03:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Stephen Knox
a5cc1842a2 Add boolean type to DB Manager PostGIS provider 2019-05-09 07:44:56 +10:00
Nyall Dawson
ef8d893393 More QgsMapLayer python fixes 2019-03-27 09:11:15 +10:00
Nyall Dawson
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Alessandro Pasotti
8fb112d26f [db-manager] Invalidate sqlite connection if it was created in another thread
Fixes #21028 - DB manager: SQLite objects created in a thread can only be used in that same thread
2019-03-11 16:04:00 +01:00
nirvn
b5146db92e Use the QgsSqliteUtils system tables list in DB Manager 2019-03-01 12:30:04 +07:00
Matthias Kuhn
1f4747fe62
Better error message when failed to open DB
hopefully gives some hints why the db manager tests sometimes fail
2019-02-21 21:57:27 +01:00
Alessandro Pasotti
dabd649a6d
Merge pull request #9164 from elpaso/bugfix-21227-layer-rename-styles
Fix GPKG layer rename styles in browser
2019-02-13 16:24:50 +01:00
Alessandro Pasotti
8639bcf853 [db-manager] Use QgsDataItem implementation for GPKG layer rename
- Removes code duplication
- Uses a tested and robust implementation (from OGR)
- Takes care of renaming QGIS styles
- Updates the information view in the plugin

Fixes #21227
2019-02-13 12:49:55 +01:00
Nyall Dawson
493185c6a0 Astyle 2019-02-13 07:59:30 +10:00
Nyall Dawson
29fa7b6e7b Fix build, indentation 2019-02-13 07:59:30 +10:00
Ailurupoda
db4db5983a Fix travis 2019-02-08 11:01:13 +01:00
Ailurupoda
db06040b60 Change != True to not + getComment and commentTable on main file if not needed only 2019-02-08 10:45:49 +01:00
Ailurupoda
9741515fae Replace db.connector/self + is None 2019-02-08 08:30:48 +01:00
Corentin.F
68c541b969
Update connector.py 2019-02-07 18:45:53 +01:00
Ailurupoda
8ed7971626 Another fix try 2019-02-07 17:29:25 +01:00
Ailurupoda
832eb40166 Another fix try 2019-02-07 16:59:12 +01:00
Ailurupoda
f27ecab62f Fix travis 2019-02-07 16:44:28 +01:00
Ailurupoda
e9e9fd322e Fixing travis layout 2019-02-07 15:35:16 +01:00
Ailurupoda
277d4fefae Fixing travis test 2019-02-07 13:10:37 +01:00
Ailurupoda
63c010dbb5 Fix create and delete comment from tableProperties 2019-02-07 09:56:48 +01:00
Ailurupoda
f3dfd97d90 New fix, still some need to be done 2019-02-06 17:37:48 +01:00
Ailurupoda
dff185355d Fix bug comment on postgres and others management 2019-02-06 10:53:56 +01:00
Alessandro Pasotti
33b8bbdff9 Astyle again 2019-02-05 11:59:14 +01:00
Alessandro Pasotti
de5171ac89 Code style (I had autopep8 installed btw) 2019-02-05 08:38:40 +01:00
Alessandro Pasotti
cd6ce76480 Quick and dirty patch to DB-Manager after PR 8831
The "comments" PR 8831 added support for postgres only
(and broke all the others backends).

I'd be in favor of a revert of the whole original PR but
this patch restores functionality and could be an acceptable
temporary fix until the comments PR is reworked in a more
maintainable and elegant way.

Fixes #21151 btw
2019-02-04 18:26:24 +01:00
Ailurupoda
aa3679a3cf Update layout oracle connector.py 2019-01-23 14:25:05 +01:00
Corentin.F
a80f3d01ee
Merge branch 'master' into sirs_db_manager 2019-01-23 11:22:12 +01:00
Ailurupoda
00852f1642 Update oracle, vlayer, spatialite connector.py 2019-01-23 11:20:24 +01:00
Ailurupoda
ad81e66daa Update gpkg UpdateTableColumn add argument new_comment 2019-01-23 10:48:16 +01:00
Julien Cabieces
49cb397f89 Update layer statistics when adding column to table in order to be displayed by QGIS
fixes #13504
2019-01-22 07:54:12 +11:00