4688 Commits

Author SHA1 Message Date
Nyall Dawson
71f880bb93 [processing][grass] Fix v.voronoi output type, add test 2018-07-25 19:50:48 +10:00
Nyall Dawson
a463af32f8 [processing][grass] Fix generation of output for v.rast.stats, add test 2018-07-25 09:23:36 +10:00
Nyall Dawson
fed345b12b [processing][grass] Make a copy of the parameters dict before doing grass modifications
Since grass algorithms modify the parameters dictionary, we need to ensure
that they do this only a copy of the dict (and not a shallow copy). Otherwise
the parameter values included in the history log are the internally
modified values, not the original user-set ones
2018-07-25 09:23:36 +10:00
Nyall Dawson
996c9a8d34 [processing][gdal] Assign output CRS should be optional for ogr to postgis alg 2018-07-25 08:20:07 +10:00
Nyall Dawson
27d447b79d [processing][gdal] Ignore 'selected features only' setting when
creating command preview

Since this has no meaning outside of a QGIS session

Refs #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
ed94b693e9 [processing][gdal] Fix layer paths are sometimes incorrect within command preview
Fixes #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
6a4d9c9bd4 [processing] Ensure feature source wrapper always returns direct
layer id/source whenever 'use selected features' is unchecked,
instead of always returning a QgsProcessingFeatureSourceDefinition
2018-07-25 08:20:07 +10:00
Nyall Dawson
3ec1442045 Points -> vertices 2018-07-24 03:56:10 +10:00
Nyall Dawson
e8d1bfc3a8 Add extra grass reference hash 2018-07-24 03:56:10 +10:00
Nyall Dawson
97e0db6245 [FEATURE][processing] Filter Vertices by M and Filter Vertices by Z algorithms
Adds two new algorithms, for filtering line/polygon vertices by their
M or Z values. A minimum and maximum M/Z value can be entered, and
if the vertices fall outside these ranges they will be discarded
from the output geometry.

Both min and max filter value can also be data defined, so can
vary per feature.
2018-07-24 03:56:10 +10:00
Nyall Dawson
f685d11b29 [processing] Reverse line direction can work with multi(line/curve) geometries 2018-07-24 03:55:49 +10:00
Nyall Dawson
65548436ad [processing] Port reverse line direction alg to c++ 2018-07-24 03:55:49 +10:00
Nyall Dawson
59ec2e0bce [processing][FEATURE] Port extend lines algorithm to c++, allow dynamic start/end distance
Allows the start and end distance to be data defined
2018-07-24 03:54:21 +10:00
Harrissou Sant-anna
8a1964fb85 Display same symbol for "not equal" operator in "Select by attribute" algorithm
as in "Extract by attribute" algorithm and "select features by value" function
2018-07-24 03:51:54 +10:00
Nyall Dawson
c0f67327aa Capitalization 2018-07-20 07:24:35 +10:00
Nyall Dawson
8b2d5d0374 Use sample instead of identify in raster sampling alg
About 25x faster on large layers
2018-07-20 07:24:35 +10:00
Nyall Dawson
c65afbdd97 [processing] Correctly handle layer type parameter values when
creating an algorithm dialog using processing.execAlgorithmDialog()
2018-07-19 07:22:06 +10:00
Matthias Kuhn
60d2cd3ca3
Merge pull request #7333 from Gustry/script_template
add warning about print() and how to load layers in Processing algs
2018-07-18 09:09:51 +02:00
Nyall Dawson
d43f1a2823 [processing] Allow models to have no group name set
This is supported by the toolbox now, so relax the requirement
that all models have a compulsory group name. If no group is set,
the model is shown directly under the Models node in the toolbox.

Also switch a warning from message box to message bar
2018-07-18 08:56:52 +10:00
Matteo Ghetta
14c74d88c8
Merge branch 'master' into processing_sampling 2018-07-16 08:33:59 +02:00
matteo
1a0d0dbb3f fix exception? 2018-07-16 08:01:02 +02:00
nirvn
53df974131 [processing] add a few more parameter tests to gdal's warp & translate algs 2018-07-16 11:53:02 +07:00
nirvn
e9b6da1c48 [processing] change nodata default to none instead of 0 in gdal's translate alg 2018-07-16 11:53:02 +07:00
nirvn
ab3a213596 [ui][processing] re-order gdal warp algorithm parameters so optional ones are at the bottom 2018-07-16 11:53:02 +07:00
nirvn
fe38f03d5d [processing] make target res. parameter optional in gdal's warp algorithm 2018-07-16 11:53:02 +07:00
nirvn
863a2f0fca [processing] make nodata parameter optional in gdal's warp algorithm 2018-07-16 11:53:02 +07:00
nirvn
fdaff06abf [processing] only set number min value as default if parameter is not optional 2018-07-16 11:53:02 +07:00
Nyall Dawson
e46b00d40d Tests for dbscan algorithm 2018-07-16 13:00:27 +10:00
Nyall Dawson
318098805e [processing][saga] Stop showing 'available providers' tip for SAGA, when it's not available anyway 2018-07-16 11:38:13 +10:00
Nyall Dawson
68aae3a0e6 Replace processing modeler toolbox with common widget/model 2018-07-16 11:38:13 +10:00
Nyall Dawson
1134386825 Fix crash on exit 2018-07-16 11:38:13 +10:00
Nyall Dawson
101c98fd17 Move toolbox tree view to c++ class 2018-07-16 11:38:13 +10:00
Nyall Dawson
810cb9c0f7 Start replacing python model 2018-07-16 11:38:13 +10:00
Nyall Dawson
69ab3c9e0c Start on history item 2018-07-16 11:38:13 +10:00
Salvatore Larosa
f993ec05be Fixes #19417 - AttributeError: 'BatchInputSelectionPanel' object has no attribute 'getText' 2018-07-16 09:00:10 +10:00
Luigi Pirelli
f7a1ef1431 Added test for gdal_fillnodata used inside processing 2018-07-13 12:19:40 +02:00
Luigi Pirelli
95246e76cd Mask parameter was wrongly set. Fixes #19409 2018-07-13 11:47:03 +02:00
matteo
92d1cdc17a add None in Exception 2018-07-12 12:45:18 +02:00
matteo
aea323efe9 update help for CRS, not needed anymore 2018-07-12 11:37:03 +02:00
matteo
40d2a97034 update test 2018-07-12 11:34:13 +02:00
matteo
b8ce7faf07 allow sampling with different CRS 2018-07-12 11:30:48 +02:00
matteo
efa236597a make column prefix as advanced parameter 2018-07-12 11:20:59 +02:00
matteo
4dbfe36b71 update help 2018-07-12 11:20:35 +02:00
matteo
f8339c9b97 output column prexif added 2018-07-12 10:27:03 +02:00
matteo
b16b8a7bd3 updated tests data 2018-07-12 10:01:17 +02:00
matteo
a7130a0f97 indentation 2018-07-12 10:00:53 +02:00
matteo
0835b20d57 exception for multipart layers 2018-07-12 09:52:41 +02:00
matteo
a4c0c2e560 single raster instead of multi 2018-07-12 09:27:56 +02:00
Nyall Dawson
93146f7c9f [processing][saga] Outputs from snap algorithms should both be optional 2018-07-12 11:32:37 +10:00
Nyall Dawson
82364e4295 [processing][saga] Unit tests for snap points to lines/points algs 2018-07-12 11:32:37 +10:00