5825 Commits

Author SHA1 Message Date
Alexander Bruy
e1a64f6a8f [processing] remove unused files 2018-02-05 08:50:37 +02:00
Alexander Bruy
724390c7df [processing] completely restore support for script execution from editor 2018-02-05 08:50:37 +02:00
Alexander Bruy
263702e1f0 [processing] ressurect script execution from editor (work in progress) 2018-02-05 08:50:37 +02:00
Alexander Bruy
53ff800ff8 [processing] temporarily disable fetch actions for scripts and models 2018-02-05 08:50:37 +02:00
Alexander Bruy
472b8bf6bf [processing] ressurect 'new script' action 2018-02-05 08:49:59 +02:00
Alexander Bruy
7115e044e3 [processing] ressurect 'add from file' action 2018-02-05 08:49:59 +02:00
Alexander Bruy
b747a6b50c [processing] ressurect delete and edit actions for scripts 2018-02-05 08:49:59 +02:00
Alexander Bruy
422d804db1 [processing] update script provider to use QgsProcessingAlgorithm
subclasses instead of custom script code
2018-02-05 08:49:59 +02:00
Alexander Bruy
aee3b44909 [processing] remove not needed trAction method 2018-02-05 08:49:41 +02:00
Alexander Bruy
862b1139fa [processing] move script provider stuff into provider directory 2018-02-05 08:49:29 +02:00
Alexander Bruy
6841c52210
Merge pull request #6257 from alexbruy/processing-sharing
[processing][needs-docs] remove Get scripts and models functionality
2018-02-05 08:48:00 +02:00
Nyall Dawson
5ba69ea945 [processing] Fix invalid parameter definitions for spatialite algs 2018-02-05 10:11:03 +10:00
Alexander Bruy
87e55ba3c7 [processing] remove Get scripts and models functionality
Users should use Resource Sharing plugin instead
2018-02-04 11:11:47 +02:00
Salvatore Larosa
68b7bf6aa8 [dbmanager] porting of dae921c to 3: fixes #16476 2018-02-03 10:53:55 +01:00
Alexander Bruy
55759a4cee [processing] remove unused icons and use SVG icon for Heatmap algorithm 2018-02-01 07:22:12 +02:00
Alexander Bruy
3ab6e5c399
Merge pull request #6238 from alexbruy/saga-icon
[processing] SVG icon for SAGA provider
2018-02-01 07:18:01 +02:00
Nyall Dawson
216821c0b1 [processing] Warn on duplicate output and provider registration
And fix associated memory leaks
2018-02-01 13:02:59 +11:00
Nyall Dawson
2218f653ca [processing][grass] Remove duplicate parameter from r.stats 2018-02-01 07:53:54 +11:00
Nyall Dawson
5896fb3305 [processing][grass] Fix incorrect name for i.albedo parameter 2018-02-01 07:53:54 +11:00
Alexander Bruy
c3fc560fef [processing] SVG icon for SAGA provider 2018-01-31 16:14:32 +02:00
Alexander Bruy
c10438e68a [processing] add missed parameter to warp algorithm 2018-01-29 18:48:08 +02:00
Mathieu Pellerin
e0c12d519f
[processing] nodes -> vertices algorithm renaming
- "Extract nodes" renamed to "Extract vertices"
- "Extract specific nodes" renamed to "Extract specific vertices"
2018-01-29 19:16:43 +07:00
pcav
3b39dcf401 Changed in in DB Manager 2018-01-29 10:18:52 +01:00
Salvatore Larosa
77163ba0ec [processing] fix toggle advanced mode button in batch panel (#6193) 2018-01-29 08:12:30 +01:00
Nyall Dawson
a05d941e4e [processing] Default to allowing background execution of algorithms
Since the underlying issues with the Python bindings are now fixed,
in most cases we can safely default to allowing an algorithm to
run in a background thread!!

So now we make this the default, and require individual algorithms
which are NOT thread safe to declare this. This includes algorithms
which directly manipulate the current project or layers (such as
setting layer styles), alter the selections in layers, or which
rely on 3rd party libraries (for now, SAGA and GRASS algorithms
are marked as not thread safe... TODO - someone more familiar with
these libraries can investigate and remove the flag if appropriate).

Also models are marked as non-thread safe. TODO: only flag an
individual model as thread-unsafe if any of its child algorithms
report this flag.
2018-01-29 17:37:05 +11:00
Nyall Dawson
0f963dfadf [processing] Default to supporting non-file based outputs for providers
And make this support opt-out, since the vast majority of providers
are based on QGIS API and don't have external dependencies which would
restrict use of memory layers/etc.

Plus, I'd rather see non-compliant providers expose this support when
they can't use non-file-based-outputs (and make this the bug which
needs fixing) then have to rely on plugin providers to discover and
explicitly expose this support.
2018-01-29 13:14:06 +10:00
Salvatore Larosa
ebb725ec04 [processing] create widget correctly from wrapper when in batch mode 2018-01-28 22:11:51 +01:00
Salvatore Larosa
550c74e106 [processing] fix wrong getter 2018-01-28 21:31:18 +01:00
Alexander Bruy
891ca3cd11 [processing] fix wrong variable name 2018-01-26 19:35:40 +02:00
nirvn
6d5dce22f6 [processing] properly size toolbar button for provider actions 2018-01-26 13:11:24 +07:00
Salvatore Larosa
f4f89bbcbe [processing] resurrects matrix parameter 2018-01-25 21:54:22 +01:00
Mathieu Pellerin
34c2d32b3e
[processing] add actions when provider is registered / activated 2018-01-25 16:16:44 +07:00
Nyall Dawson
bf19eb6f35 [processing] Non-filed based outputs (e.g. postgis, geopackage)
options should be available for certain model outputs and script
algorithm outputs

We do this by swapping the test for non-file based output support
from checking only the algorithm's provider to instead checking
on a parameter-by-parameter basis.

This is done in order to support models. For models, depending
on what child algorithm a model output is based off, an individual
model may or may not have support for non-file based outputs. E.g
a model may generate outputs from a native qgis alg (supporting
these outputs) AND an output from a GDAL alg (with no support
for these outputs). In this case we need to enable or disable
the ui controls for non-file based outputs on an individual
output basis.

For scripts (for now) we blindly just say all outputs support
non-file based formats. This is going to be the case most of
the time, since scripts will usually be written using PyQGIS
API. For the exceptions (e.g. scripts which call other algs
like GDAL algs) we probably should add some way for the script
to indicate whether an individual output supports this, but
for now we just say they all do.

Fixes #17949
2018-01-25 15:47:42 +11:00
nirvn
5f5f1f9c05 [processing] don't modify output filename in build virtual raster 2018-01-24 18:18:32 +07:00
nirvn
746701bf33 [processing] add default extension to empty filter when available 2018-01-24 18:18:32 +07:00
Nyall Dawson
097a437af8 [processing] Fix missing outputs in modeler for grass algs (fixes #17703) 2018-01-24 19:00:58 +11:00
Nyall Dawson
4e6aa3c359 [processing] Fix error on win when grass path isn't set correctly 2018-01-24 19:00:58 +11:00
Nyall Dawson
2013725793 Fix gui handling of NULL/None default values in processing script algorithms 2018-01-24 17:54:47 +11:00
Mathieu Pellerin
c5d9830db2
[needs-docs][processing] move providers actions into the processing
panel toolbar (#6150)
2018-01-24 13:24:44 +07:00
Alexander Bruy
5dc8c3f0a2
Merge pull request #6141 from alexbruy/processing-gdal
[processing] restore GDAL rasterize algorithm
2018-01-24 08:16:01 +02:00
Nyall Dawson
54f9846eda Fix executing processing scripts through script editor 2018-01-24 15:53:33 +11:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11:00
Nyall Dawson
63db1be890 [processing] Improve main window Toolbox action
Brings the behaviour into line with the styling dock, where
the action is checkable and checked only when the toolbox
is open AND user visible (i.e. not hidden behind another tab). If
the toolbox is open but hidden, then hitting the Toolbox action
brings it to the front tab.

Otherwise it's often necessary to hit to Toolbox shortcut twice -
once to close a hidden toolbox tab, and a second time to open
and raise it.
2018-01-24 11:38:07 +11:00
Salvatore Larosa
b49c3964bb [processing] set icon size to toolbar 2018-01-23 23:39:02 +01:00
Salvatore Larosa
36768aad88 [processing] change icon for options action in toolbar 2018-01-23 23:16:01 +01:00
Salvatore Larosa
eb8a810ddf [processing] followup: 9c400324e2 - restore ellipses in menu actions 2018-01-23 23:13:13 +01:00
Salvatore Larosa
9c400324e2 [processing] add toolbar to toolbox 2018-01-23 22:30:29 +01:00
Alexander Bruy
77a6bbbb0a [processing] restore GDAL rasterize algorithm 2018-01-23 12:27:04 +02:00
Alexander Bruy
c09c301803 [processing] throw error if no layers selected in raster calculator
algorithm (refs #17920)
2018-01-23 10:38:59 +02:00
Alexander Bruy
d7e1813180 [processing] make items hidden after adding them to the view (fix #17881) 2018-01-23 10:00:28 +02:00