6372 Commits

Author SHA1 Message Date
Nyall Dawson
85fba799ea [processing] Don't abort when missing field name specified in
delete columns algorithm

Fixes #19256
2018-06-28 17:10:23 +10:00
Nyall Dawson
6f5405a829 [processing] Be more careful with output geometries added as a
result of clipping
2018-06-28 17:09:51 +10:00
Nyall Dawson
31330ddffb [processing] Fix random selection algorithm when filter is set on layer 2018-06-28 15:02:06 +10:00
Nyall Dawson
977e14b058 [processing] Fix potential crash when calling processing.run with
custom context, but no feedback object
2018-06-28 14:12:37 +10:00
Matthias Kuhn
7acfe037c4
Merge pull request #7064 from anitagraser/patch-1
[FEATURE] Create PostGISExecuteAndLoadSQL.py
2018-06-25 08:17:04 +02:00
Anita Graser
4a48f50a85
Add qgis:postgisexecuteandloadsql 2018-06-22 21:35:26 +02:00
Nyall Dawson
5b7eefa6ae [FEATURE][processing] New 'Raster pixels to polygons' algorithm
Converts a raster layer into a vector layer, with a polygon feature
corresponding to each pixel from the raster and a single field
containing the band value from the raster.

Sponsored by SMEC/SJ
2018-06-23 04:42:10 +10:00
Anita Graser
bebadef101
Fix parameter names 2018-06-22 18:40:17 +02:00
Matthias Kuhn
cbde32f0fc
Merge pull request #4643 from merkato/master
[FEATURE] Add role logging for PostGIS versioning.
2018-06-22 14:47:07 +02:00
Martin Dobias
80b0c72c50 Fix a Python error in Processing GUI
It turns out that an empty QComboBox evaluates to False:

>>> t=QLineEdit()
>>> bool(t)
True
>>> c=QComboBox()
>>> bool(c)
False

Due to that, the 'TABLE' parameter was missing if its (editable) combo box was empty.

Original error - while updating an algorithm's parameters (gdal:importvectorintopostgisdatabaseavailableconnections)

Traceback (most recent call last):
  File "/home/martin/qgis/git-master/build-debug/output/python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py", line 121, in parametersHaveChanged
    or (not p.checkValueIsAcceptable(parameters[p.name()])):
KeyError: 'TABLE'
2018-06-22 13:30:26 +02:00
Nyall Dawson
41d6b9d967 Silence more plotly warnings on import 2018-06-22 14:26:55 +10:00
Nyall Dawson
6e7c07bc86 Mark regex 2018-06-22 13:37:58 +10:00
Nyall Dawson
12efb8669e [dbmanager] Fix error when connecting to postgis db
Fixes #19240
2018-06-22 13:37:58 +10:00
Nyall Dawson
4132dbc1c8 Typo 2018-06-20 15:06:36 +10:00
Nyall Dawson
8d6ce61a70 [processing] Silence warnings thrown from within plotly on import 2018-06-20 08:07:23 +10:00
Nyall Dawson
16ac437780 [processing] Fix bar and box plot exception when category field has NULL values 2018-06-20 08:07:23 +10:00
Nyall Dawson
a17b77be56 [processing][gdal] Add missing parameters for buildvrt algorithm 2018-06-18 10:28:27 +10:00
Nyall Dawson
76b13ff4c4 [processing][gdal] More descriptive name for separate parameter
in buildvrt algorithm

Fixes #19212
2018-06-18 10:28:27 +10:00
Nyall Dawson
8323462f3b [processing][saga] Fix definition of cross profiles alg, add test 2018-06-16 15:35:31 +10:00
Nyall Dawson
6b08eff655 Spelling 2018-06-15 13:48:43 +10:00
Nyall Dawson
55a54b0971 [processing][saga] Fix duplicate confusion matrix algs
Fixes #19188
2018-06-15 13:48:43 +10:00
Nyall Dawson
37e379836b [processing][saga] Fix duplicate cluster analysis algs 2018-06-15 13:48:43 +10:00
Nyall Dawson
a8c0cef49a [processing][saga] Fix params for IDW alg 2018-06-15 13:48:43 +10:00
Nyall Dawson
d04fee69b3 [processing][saga] Remove duplicate GWR algs, fix params 2018-06-15 13:48:43 +10:00
Nyall Dawson
0a2c856bbb [processing][saga] Remove duplicate polygon self intersection alg, fix params and add test 2018-06-15 13:48:43 +10:00
Nyall Dawson
dd9e46f86c [processing][saga] Remove duplicate intersect alg, add test 2018-06-15 13:48:43 +10:00
Nyall Dawson
c85b1649c8 [processing][saga] Remove duplicate symmetrical difference alg
and add test.

Warnings: SAGA results are bad here! Use the native QGIS alg
instead
2018-06-15 13:48:43 +10:00
Nyall Dawson
f75d31c40c [processing][saga] Remove duplicate polygon difference alg, add test 2018-06-15 13:48:43 +10:00
Nyall Dawson
bdac9f10c6 [processing][saga] Remove duplicate identity alg, add test 2018-06-15 13:48:43 +10:00
Nyall Dawson
07530be1b6 [processing][saga] Remove duplicate polygon union algorithm
Also
- fix typo in algorithm name
- add unit test
2018-06-15 13:48:43 +10:00
Nyall Dawson
939551bc35 [processing][saga] Remove duplicate polygon update algorithm, add test 2018-06-15 13:48:43 +10:00
Nyall Dawson
f838001d0a Indentation 2018-06-15 06:39:48 +10:00
Nyall Dawson
bde8b4303f Fix exception in create constant raster alg 2018-06-15 06:39:48 +10:00
Alexander Bruy
dcff720bb0 also use 1-dimensional table in modeler dialog (follow up 4b354984e8) 2018-06-14 09:35:11 +10:00
Nyall Dawson
0da30699a5 [processing] Add unit tests for reclassify using nulls 2018-06-13 14:54:40 +10:00
Nyall Dawson
6b24d8c6d7 [processing] Restore window geometry for fixed table editor dialog 2018-06-13 14:54:40 +10:00
Nyall Dawson
b26957e41f Throw exception when raster output could not be created 2018-06-13 14:54:40 +10:00
Nyall Dawson
d7a37fa3eb Throw exception when invalid band number specified 2018-06-13 14:54:40 +10:00
Nyall Dawson
7a157837cb Add tests for processing reclassification algorithms 2018-06-13 14:54:40 +10:00
nirvn
f1397f8439 [processing] fix geometry by expression algorithm geometryless input 2018-06-12 19:02:34 +10:00
Luigi Pirelli
f4065d8aed
Merge pull request #6647 from luipir/certs_not_removed_with_pki_postgis_on_win_port3
Certs not removed with pki postgis on win port3
2018-06-12 00:11:03 +02:00
Nyall Dawson
4e084b63c4 [processing] Fix exception when browsing for folder in processing
options for multiple folder settings
2018-06-11 15:16:11 +10:00
Nyall Dawson
23277284e7 [processing][gdal] Fix execution of hillshade with multidirectional argument
And add tests
2018-06-09 18:15:00 +10:00
Nyall Dawson
77786f38c3 [processing][SAGA] Fix interpolation choices for add grid values algorithms
And add more tests

Fixes #19132
2018-06-08 12:18:35 +10:00
Nyall Dawson
b637c7fe22 Prevent background execution of zonal stats
This algorithm is NEVER safe to run in the background, because
it directly modifies a layer in place.

We should:
- make a variant of this algorithm which returns a new layer
AND
- refactor the QgsZonalStats code to create a separate map
of feature->stats, and then modify the existing Zonal Stats
algorithm to apply these changes in a post processing step
2018-06-08 10:13:13 +10:00
Nyall Dawson
e97f0d3230 Update processing test results 2018-06-08 10:13:13 +10:00
Nyall Dawson
fc5eb96295 Make zonal statistics algorithm thread safe 2018-06-08 10:13:13 +10:00
Nyall Dawson
22a98fb680 [processing] Allow choice of field prefix for Join algorithms
Avoids clash of field names resulting in potentially misleading results
2018-06-07 14:24:16 +10:00
Nyall Dawson
cbbe905fae [processing] Fix missing schemas in postgis destination selection panel 2018-06-06 06:27:03 +10:00
Tom Chadwin
9780068548 Avoid deprecated regex
Avoid invalid escape sequence via raw string:

`re.compile('^[^\s\(]+')` > `re.compile(r'^[^\s\(]+')`
2018-06-06 06:24:24 +10:00