4588 Commits

Author SHA1 Message Date
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
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
Tom Chadwin
fab563fe71 Processing: avoid deprecated regex
Invalid escape sequence avoided via raw string:

`re.findall("\d+|[a-zA-Z]+", rep[0][0])` > `re.findall(r"\d+|[a-zA-Z]+", rep[0][0])`
2018-06-06 06:24:24 +10:00
Tom Chadwin
6a8a622ea4 Processing: Avoid deprecated regex
Escape sequence avoided in DefinProjection by using raw string:

`re.compile('\|.*')` > `re.compile(r'\|.*')`
2018-06-06 06:24:24 +10:00
Luigi Pirelli
fa7879ade1 [processing] Correct management of optional rasters in batch mode. Fixes #19115 2018-06-05 11:53:52 +02:00
Nyall Dawson
8c689b2d36 [processing] Fix create constant raster layer modifies pixel size
Fixes #18446
2018-06-05 16:15:58 +10:00
Nyall Dawson
e91aed6617 [processing] Force model outputs to respect constraints set by
their underlying algorithm's provider

E.g. for model outputs generated by a saga algorithm, only
sdat and shp files are valid outputs. So only give users choices
of these instead of all formats.

Also fixes temporary file names generated as part of model
execution may use formats which are not compatible with the
algorithm's provider.

Fixes #18908
2018-06-05 10:05:32 +10:00
Nyall Dawson
8307264c3b [processing][SAGA] Avoid unicode errors when parsing description files
Fixes #19062
2018-06-05 05:25:16 +10:00
Nyall Dawson
3b2f690d26 [processing] Also add table output for raster unique values report algorithm
Allows values to be used within models
2018-06-04 21:30:12 +10:00
Andrea Giudiceandrea
adf5eb77cf Add vector icons to some qgs algorithms (fixes #19082) (#7149) 2018-06-04 13:32:56 +07:00
Nyall Dawson
b8ff44e63d [processing][saga] Fix error in merge vector layers
Fixes #18545
2018-06-04 15:15:46 +10:00
Nyall Dawson
1bc1790b7b [processing][SAGA] Resync kriging parameters with saga manual
And remove duplicate kriging algorithms, add tests

Fixes #18191
2018-06-04 15:05:15 +10:00
Nyall Dawson
268aa171cb [processing][saga] Fix error in raster calculator
Fixes #18751
2018-06-04 14:01:24 +10:00
Nyall Dawson
433513005a [processing][SAGA] Fix missing outputs from some algorithms
Fixes #19103
2018-06-04 13:16:08 +10:00
Nyall Dawson
f6ac45a510 [processing][saga] Add unit test for reclassify values (simple) 2018-06-04 12:58:12 +10:00
Nyall Dawson
3dde95de5d [processing][SAGA] Fix broken reclassify values algorithm
Fixes #18750
2018-06-04 12:58:12 +10:00
Nyall Dawson
4b354984e8 [processing] Matrix parameter values are always 1-dimensional
Fix gui wrapper returns 2-dimensional parameters, which don't
match with the expectations of QgsProcessingParameterMatrix
2018-06-04 12:58:12 +10:00
Nyall Dawson
f85a3d6bc0 [processing][SAGA] Fix exposed output formats to include only those supported by SAGA
Refs #18908
2018-06-04 12:00:28 +10:00
Nyall Dawson
1395dc0e9c Add missing license headers 2018-06-04 11:30:32 +10:00
Nyall Dawson
bd65fc607b [processing][gdal] Don't double quote output paths
Breaks for some drivers, e.g. KML

Fixes #18264
2018-06-01 18:21:41 +10:00
Nyall Dawson
30ecb33855 [processing][GRASS] Fix some algorithms always export as GPKG, regardless of format selected 2018-06-01 16:53:00 +10:00
Nyall Dawson
60a87e9497 [processing] Fix error when creating tests and raster output
no longer exists

Fixes #16123
2018-06-01 16:20:12 +10:00
Nyall Dawson
4289bcb3cb [processing][saga] Fix some field parameters are incorrectly defined as feature sources
Fixes #18193
2018-06-01 15:55:11 +10:00
Nyall Dawson
950d042e72 [processing] Fix errors when filling parameters in batch panel
Fixes #18408
2018-06-01 15:55:11 +10:00