Alessandro Pasotti
7f6b3cf877
Fix DB manager PG rename table
...
Fixes #32808
2019-11-14 13:42:36 +01:00
Alessandro Pasotti
6c9f01e28d
Fix postgis 12 adscr -> adbin consrc -> conbin
2019-11-06 12:53:52 +01:00
Juergen E. Fischer
002d3986d5
translation string fix
2019-11-03 19:00:08 +01:00
Matthias Kuhn
aa3ba9d119
Merge pull request #32125 from m-kuhn/db_manager_select_geom_type
...
[db_manager] Allow selecting geometry type in context menu
2019-10-26 19:54:23 +02:00
Sebastian Niklasch
1a45936595
prevent AttributeError
...
If os.path.isfile(sqlite_cache_file) is False, the Attribute cache_connection was not assigned and so an Attribute Error occured in the following lines.
2019-10-26 15:59:39 +10:00
Juergen E. Fischer
b81d306047
spelling fixes ( closes #32408 )
2019-10-26 10:50:30 +10:00
Matthias Kuhn
ea510e83ef
Update python/plugins/db_manager/db_plugins/plugin.py
...
Co-Authored-By: Alessandro Pasotti <elpaso@itopen.it>
2019-10-07 09:18:34 +02:00
Matthias Kuhn
f3dd5150c7
[db_manager] Detect CRS in advanced add layer
2019-10-06 18:43:57 +02:00
Matthias Kuhn
2555e6420c
Initialize variable
2019-10-06 18:43:57 +02:00
Matthias Kuhn
c9133ee75d
Update python/plugins/db_manager/db_plugins/plugin.py
...
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-10-06 18:43:57 +02:00
Matthias Kuhn
da31655549
Update python/plugins/db_manager/db_plugins/plugin.py
...
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-10-06 18:43:57 +02:00
Matthias Kuhn
fd9cc9354f
Fix python warning
2019-10-06 18:43:57 +02:00
Matthias Kuhn
54354406d0
[db_manager] Allow selecting geometry type in context menu
...
When a layer has a generic "GEOMETRY" type, it will only be listed once in the db_manager
but with an additional context menu entry for advanced properties, where one can select
the geometry type and the CRS.
Fix #32119
References #30787
2019-10-06 18:43:47 +02:00
Alexander Bruy
cebdc8dded
[dbmanager] don't ignore field modifiers (e.g. length or geometry
...
definition) when updating it (fix #27613 )
2019-09-23 06:01:56 +10:00
Alexander Bruy
54c23d137f
[dbmanager] handle attempts to edit raster tables ( fix #30214 )
2019-09-21 06:05:42 +10:00
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