373 Commits

Author SHA1 Message Date
Harrissou Sant-anna
9e6b8ed59d Use PostGIS and PostgreSQL spelling when appropriate 2017-07-07 01:26:38 +02:00
Harrissou Sant-anna
6fab688298 Use SpatiaLite right spelling when needed 2017-07-07 01:26:38 +02:00
Denis Rouzaud
5b8e2c2f27 remove QgsVectorLayer::hasGeometryType in favor of QgsMapLayer::isSpatial 2017-07-05 10:18:32 +02:00
Harrissou Sant-anna
450eb7c24a Spelling check: Replace analyse by analyze 2017-07-02 22:28:50 +02:00
Even Rouault
2fb0b16364 [DBManager] Avoid unhandled exception on a untyped geometry (wkbUnknown) layer (#16730) 2017-06-21 14:17:29 +02:00
Sandro Santilli
362d4f0697 Add DBManager test for service-only URI
Ref #16626

Also fixes runs with non-standard QGIS_PGTEST_DB env variable set
2017-06-06 14:56:40 +02:00
Sandro Santilli
7af47c2afa Add a raster table to the test postgis setup, use it from dbmanager test 2017-06-06 09:51:30 +02:00
Sandro Santilli
3738798991 Add test for DBManager's PostGIS connector and plugin
Only enabled when ENABLE_PGTEST is set
Includes test for dbname-less URI (#10600 and #16625 and #16626)

The test relies on default libpq accessed database containing
one raster table, but makes no effort to create such database yet.
2017-06-06 09:51:30 +02:00
Nyall Dawson
f69d1c2065 Convert isolated '...' strings to '…'
Ideally we'd replace ALL ... instances to …, but need to
first work out how to avoid the translation burden of this
change
2017-06-05 09:56:58 +10:00
Sandro Santilli
78c3423861 For GDAL sake extract a dbname from the connection
Works around GDAL limitation reported in:
https://trac.osgeo.org/gdal/ticket/6910

Ref #16625
Ref #16626
2017-06-02 17:31:41 +02:00
Sandro Santilli
861cf9abad Fix typo in URI service extraction (introduced in 93624b08)
Also add a comment about lack of support in GDAL up to 2.2.x for
service specification in datasource uri

Ref #16626
2017-06-02 16:44:27 +02:00
Sandro Santilli
d56a692bec Fix typo 2017-05-30 10:33:18 +02:00
Sandro Santilli
a53f66048c Pass "service" parameter to gdal when opening PostGIS Rasters
See #16626 - needs backport to 2.18
2017-05-30 09:21:32 +02:00
Sandro Santilli
13e39da074 Ensure "dbname" is set in the uri, once again
Fixes #16625 (ref #10600)
2017-05-26 17:52:29 +02:00
Juergen E. Fischer
beed86e19d db manager: fix spatialite plugin (followup c77172ed; fixes #16542) 2017-05-21 10:45:30 +02:00
Juergen E. Fischer
d1cc574a4f db manager: fix layer custom action 2017-05-18 10:01:12 +02:00
Juergen E. Fischer
3f7f95ee26 db_manager versioning: add RETURNING to INSERT rule (fixes #16083) 2017-05-16 10:34:59 +02:00
Nyall Dawson
75a5d5dda1 Remove unused skipAttributeCreation option in QgsVectorLayerExporter::exportLayer 2017-05-12 08:03:23 +10:00
Nyall Dawson
384369c3c4 Rename QgsVectorLayerImport to QgsVectorLayerExporter
Since the majority of users of this class will be exporting
an existing map layer to a data provider, the QgsVectorLayerImport
name is misleading and suggests that this class is designed
just to bring layers "into" QGIS.

Explicitly naming the class "Exporter" should help API users
discover this class.

Also cleanup API and improve docs
2017-05-12 08:02:51 +10:00
arnaud.morvan@camptocamp.com
44731f2314 [db_manager] Fix postgis plugins loading
Fix infinite recursion on load calls
2017-04-28 18:47:43 +02:00
arnaud.morvan@camptocamp.com
cfe8dfedae [db_manager] Fix DBConnector.getSchemaTableName
Fix #15910
2017-04-28 12:11:04 +02:00
Even Rouault
965350b3ae DBManager: fix importing a new layer in a GeoPackage (#16295) 2017-04-24 21:41:25 +02:00
Etienne Trimaille
9c832adc51 disable export button if we try to export a raster layer (#4319) 2017-04-07 09:14:36 +10:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
ecc5bb508e pep8/pyflakes3 cleanups 2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Nyall Dawson
92f03273f5 Correctly use QgsMapCanvas::freeze instead of setRenderFlag 2017-03-01 07:29:35 +10:00
Hugo Mercier
f56e6b9d3e [dbmanager] Fix encoding issues with virtual layers 2017-02-27 10:32:28 +01:00
rldhont
2a77ba76f4 [BUGFIX][DB Manager] Detect query layer like providers do
In postgres provider, a query layer is detected as a table starting with `(` and ending with `)`.
2017-02-02 14:21:42 +01:00
Juergen E. Fischer
a61b9222de Qt 5.2 has QComboBox::currentData 2017-01-25 03:28:53 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Denis Rouzaud
748be8de71 [spelling] replace behaviour by behavior 2017-01-11 11:35:19 +01:00
Harrissou Sant-anna
ef85cdcf83 Replace "eg" by "e.g." or "for example" 2016-12-30 00:03:22 +01:00
DelazJ
828e447991 More spelling fixes
* editation
* definintion
* Unabled
* capitalize QGIS
* replace algs by algorithms
* queryings
* symbo(s)
* missing space after a dot
2016-12-29 01:53:55 +01:00
DelazJ
a56f928f71 Replace unicode by Unicode 2016-12-29 01:46:18 +01:00
Martin Dobias
c49e70ea09 Fix DB manager layer preview after my QgsMapCanvas changes 2016-12-14 00:17:03 +08:00
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Hugo Mercier
b7fa5400b6 [db manager] Fix virtual layer uid handling 2016-11-22 16:09:53 +01:00
Martin Dobias
d716640403 Remove usage of legendInterface() from plugins (followup e5f62e49) 2016-11-22 12:23:37 +08:00
aroche
6bfd0fd79e fix exception when selecting string function
just a typo causing an exception when selecting a string function in query builder dialog
2016-11-15 12:13:31 +01:00
Even Rouault
8b1adc5dcd Merge pull request #3635 from arnaud-morvan/processing_postgis_connect
[processing][db_manager] Fix connection to postgis
2016-11-13 18:15:57 +01:00
Nyall Dawson
fd15090521 Update identation 2016-11-08 08:51:22 +10:00
arnaud.morvan@camptocamp.com
9cd39e79dd [db_manager] Fix connection to postgis 2016-11-06 13:29:59 +01:00
Even Rouault
984ec65fcd [DBManager GPKG] Set appropriate icon for line layers 2016-10-27 15:59:57 +02:00
Even Rouault
d0da880b8c [DB Manager] Fix refresh issue when renaming GPKG table, and disable add geometry column button if already one existing 2016-10-25 15:39:27 +02:00
Even Rouault
794c8f3c85 [DB_Manager GPKG] Fix creating and changing default values of columns 2016-10-24 17:41:49 +02:00
Even Rouault
f84826d58d [DB_Manager GPKG] Fix logic inversion in GDAL 1.X vs GDAL 2.X cases 2016-10-24 17:01:58 +02:00
Even Rouault
af236c4ef8 Merge pull request #3628 from rouault/dbmanager_gpkg
[DBManager] Add dedicated GeoPackage plugin
2016-10-24 10:33:03 +02:00