109 Commits

Author SHA1 Message Date
Nyall Dawson
3cc9b5d962 Indentation 2016-10-22 09:03:24 +10:00
rldhont
a9795ad8ea [DB Manager] Allow lowercase field names for homogenize PostGIS Import
PostGIS provider has an option to lowercase field names. This options is available for user in QGIS algorithm ImportIntoPostGIS and not in DB Mananger.

This commit fix it.
2016-10-19 13:03:32 +02:00
Sandro Santilli
0348dd5ce7 Force use of estimated metadata upon loading topologies 2016-10-05 12:17:57 +02: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
Sandro Santilli
91052d5496 Use nullSymbol for label-only layers in topology viewer 2016-09-16 13:41:23 +02:00
Matthias Kuhn
3aff45cc13 Fix db_manager 2016-08-10 20:36:18 +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
ecf3b3719d db manager: show database name in postgis connection details (fixes #3489) 2016-06-21 00:17:41 +02:00
Salvatore Larosa
f1ec12133e [dbmanager] followup 8727799: again some emit signal fix 2016-06-11 18:29:29 +02:00
Sebastian Dietrich
c5308754eb [DbManager] allow to refresh materialized views
(fixes #13697)
2016-05-14 00:41:20 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Alessandro Pasotti
1eb63768d9 [dbmanager] Use user name as DB name if provided
Followup for 212b125
2016-04-12 14:40:23 +02:00
Alessandro Pasotti
212b125a2c [dbmanager] PG ignore env if service file is used
Fixes #14436

Funded by Boundless
2016-04-12 14:05:19 +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
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Sandro Santilli
976015a38d Fix typmod aware query for topology face layers
followup d8a768f0a0b1926ead3b42c0fa9e12d35f8905f0 (which was bogus)
2016-02-23 07:38:53 +01:00
Sandro Santilli
d8a768f0a0 Make geometry typmod available for topology face layer queries
Greatly improves performances on topology loading.
See http://hub.qgis.org/issues/14356
2016-02-22 23:13:39 +01:00
Sebastian Dietrich
560007846a [DbManager] allow to delete materialized views
(refs #13829)
2016-01-27 00:28:22 +01:00
Sebastian Dietrich
50878114a7 [DbManager] fetch type of view (materialized or not) and show in info
(refs #13829)
2016-01-27 00:28:22 +01:00
Sandro Santilli
da372c8d40 Ensure "dbname" is always set in the uri
Fixes #10600
2016-01-19 10:58:14 +01:00
Luigi Pirelli
5fb798e220 [auth][db_manager]removed certs (if any) after postgres connection 2016-01-13 21:28:25 +01:00
Sebastian Dietrich
ef91882fe0 explicitly call QgsDataSourceURI.connectionInfo() with appropriate parameter 2016-01-13 20:12:19 +01:00
Sebastian Dietrich
93ab890033 make DbManager aware of the new authentication system 2016-01-13 20:12:03 +01:00
Matthias Kuhn
0b6dd352c9 [py3] CMake updates to support Python3 and PyQt5 2015-11-16 07:42:47 +01:00
Juergen E. Fischer
53c507d3a7 db manager: add credentials to postgis rasters (fixes #13594) 2015-10-13 22:54:01 +02: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
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00
Juergen E. Fischer
48e4fb85c8 Revert "use triple quoting with st_estimatedextent in postgres provider and db_manager (fixes #12478)"
As it seems to address a meanwhile reverted behavior change in PostGIS 2.1
before it was released (see also https://trac.osgeo.org/postgis/ticket/2834).

This reverts commit 048aff01bb9cf42e2c1c17eb0ddbd81537443e19.
2015-07-13 11:15:40 +02:00
Sandro Santilli
b9b6257eb7 DBManager TopoViewer: zoom on topology if first load
Fixes #13064
2015-07-02 23:57:54 +02:00
Sandro Santilli
fcc51bcd8c DBManager topoviewer: don't be fooled by srid=-1 in topology.topology
Fixes #12802
2015-07-02 11:02:04 +02:00
Cedric Christen
4420b3bf99 Drag&Drop support for GeoPackage layers 2015-06-26 16:35:31 +02:00
Juergen E. Fischer
048aff01bb use triple quoting with st_estimatedextent in postgres provider and db_manager (fixes #12478) 2015-06-24 18:08:26 +02:00
Hugo Mercier
2e86d54b27 Merge pull request #2025 from mhugo/db_manager_dev
db manager SQL window enhancements
2015-05-25 16:29:40 +02:00
radosuav
27f1d9fb3e Fix drag & drop for PG rasters in DB Manager 2015-05-19 14:56:17 +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
Juergen E. Fischer
62b2c1fcab db manager: request credentials directly when connection failed (fixes #11886) 2015-01-25 00:33:35 +01:00
Juergen E. Fischer
f8f7842108 db_manager: fix error message on table vacuum 2014-12-03 16:18:32 +01:00
Sandro Santilli
93864ce55c Remove workaround for layergroup bug #6938, now fixed 2014-10-21 12:42:42 +02:00
Sandro Santilli
1ff2ad3cc3 [TopoViewer] fix layer visibility after QgsLegendInterface API changes
It was broken with 2.4, whereas QgsLegendInterface::moveLayer started
forcing layer visibility on (undocumented behaviour).

Fixes #11382
2014-10-14 23:43:40 +02:00
Salvatore Larosa
a778e265a7 [dbmanager] followp 1646f67: fixes some string and changes more messageboxes 2014-09-26 07:18:19 +10:00
Sandro Santilli
dd78876636 Allow loading pgraster tables with non-default raster field name
Before this change you could only load tables where the raster
field was named "rast".
2014-09-04 13:14:39 +02:00
Sandro Santilli
e91141cb2a Allow loading PostGIS Rasters from partially configured connections
Partially configured connection are those for which an hostname
or username or port etc. are not specified, relying on libpq defaults.

It was already fixed for geometries but rasters needed more love.
See #9037.
2014-09-04 12:36:59 +02:00