4754 Commits

Author SHA1 Message Date
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
Rudi von Staden
64352fb159 Fix input parameter types for SAGA SnapPointstoLines 2018-07-12 11:32:37 +10:00
Rudi von Staden
dd4c49deae Fix input parameters of SAGA SnapPointstoPoints
Fixes #19382
2018-07-12 11:32:37 +10:00
Nyall Dawson
a5992d0178 [processing] Fail model drop if model file could not be successfully read 2018-07-12 10:14:03 +10:00
Nyall Dawson
61cc8b5774 [processing] Fix exception when dropping model file on qgis window 2018-07-12 10:14:03 +10:00
Luigi Pirelli
1875b025da
Merge pull request #7362 from rudivs/update_maplayerwidgetwrapper
Add 'not selected' option for optional layer parameters in processing models
2018-07-11 15:25:12 +02:00
matteo
eca6691055 fix travis? 2018-07-11 10:50:46 +02:00
matteo
22d7b6c5d0 fixing indentation? 2018-07-11 09:23:09 +02:00
matteo
5507c3439b try geojson for travis 2018-07-10 16:14:59 +02:00
matteo
b6cafe7ece indentation fix 2018-07-10 15:36:21 +02:00
matteo
d1cedbcf92 [processing][needs-doc][FEATURE] Sample raster values to point 2018-07-10 15:19:56 +02:00
Alexander Bruy
6d751dcb70
Merge pull request #7363 from alexbruy/fix-sampling
[processing] fix Random extract/select within subset algorithms
2018-07-04 19:53:53 +03:00
Nyall Dawson
6c014b46ba [processing] Use c++ recent algorithm log, remove python log
Indirectly fixes #19218
2018-07-05 02:37:03 +10:00
Alexander Bruy
b72f5d1a53 [processing] log cases when subset is smaller than requested number of
features
2018-07-04 19:15:29 +03:00
Alexander Bruy
29207a1617 [processing] fix Random extract/select within subset when subset is
smaller than number of requested features (fix #19322)
2018-07-04 18:30:30 +03:00
Rudi von Staden
57fb4ef27c Add 'not selected' option for optional layer parameters in processing model view
Fixes #19329 (https://issues.qgis.org/issues/19329)

Optional layer parameters in processing algorithms used in the graphical modeler
add an empty string as the default parameter value, which can raise an exception
during algorithm execution. This update replaces the default empty string with a
default 'Not selected' option.
2018-07-04 13:45:46 +02:00
Etienne Trimaille
0685197b6c
add hint about pushing information to the user in script template 2018-07-03 16:45:55 -04:00
Nyall Dawson
f43adf7a8b Fix test 2018-07-03 09:43:40 +10:00
Nyall Dawson
2cc9bc8f73 [processing] Fix unexpected newlines showing in python command in history dialog 2018-07-03 09:43:40 +10:00
Nyall Dawson
1621402652 [processing] Fix exception when clicking alg with distance param in history dialog 2018-07-03 09:43:40 +10:00
nirvn
7cb80a2308 Rename mActionDraw.svg to more appropriate mActionRefresh.svg
(in doing so, rename current mActionRefresh.svg to mActionReload.svg)
2018-07-02 12:51:44 +07:00
Juergen E. Fischer
ac63b8e16e Translation fix 2018-07-02 02:47:09 +02:00
Håvard Tveite
a756fb1034 Fix parameter type for the BUFFER parameter of the Voronoi polygons alg
Fixes #19294
2018-06-29 23:02:03 +10:00
Nyall Dawson
9fe26af8fa Allow processing tests to specify ellipsoid/project CRS 2018-06-29 07:12:48 +10:00
Nyall Dawson
34b9d39b27 [FEATURE][processing] K Means clustering algorithm
Adds a native k-means clustering algorithm.

Based on a port of PostGIS' ST_ClusterKMeans function, this
new algorithm adds a new cluster ID field to a set of input
features identify the feature's cluster based on the k-means
clustering approach. If non-point geometries are used as input,
the clustering is based off the centroid of the input geometries.
2018-06-29 07:12:48 +10:00
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
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