Alexander Bruy
4777abb48e
[processing] add icons to SAGA algorithms ( fix #18211 )
2018-02-26 10:37:17 +02:00
Salvatore Larosa
332c8a59b9
[processing] Fixes #18187 : SAGA output extent values are not in the right order
2018-02-24 22:57:40 +01:00
Denis Rouzaud
3dc3d9d1b2
unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
...
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04: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
Alexander Bruy
5e157c967d
[processing] add group id to SAGA algorithms
2017-12-14 18:04:11 +02:00
Alexander Bruy
4b63975eaf
[processing] tests for SAGA provider and related fixes
2017-11-09 18:56:44 +02:00
Alexander Bruy
057ab170da
[processing] fix input rasters check
2017-11-09 18:56:44 +02:00
Alexander Bruy
dc9f868e08
[processing] fix not initialized variable
2017-11-09 18:56:44 +02:00
Alexander Bruy
1b6b6cdb45
[processing] fix integer numbers handling
2017-11-09 18:56:44 +02:00
Alexander Bruy
2b218cc2b0
[processing] more raster handling fixes in SAGA provider
2017-11-09 18:56:44 +02:00
Alexander Bruy
3822efa7a5
[processing] fix rasters handling in checkParameterValues()
2017-11-09 18:56:44 +02:00
Nyall Dawson
8d91f1f1eb
Restore more saga functionality
2017-11-09 18:56:44 +02:00
Nyall Dawson
9ba414394d
Convert SAGA ParameterTableField parameters
2017-11-09 18:56:44 +02:00
Nyall Dawson
7953936c90
Update SAGA ParameterMultipleInput parameters
2017-11-09 18:56:19 +02:00
Nyall Dawson
d9ac3772fd
Update SAGA ParameterTable parameters
2017-11-09 18:56:01 +02:00
Nyall Dawson
4ac6847bc7
Update SAGA ParameterVector params
2017-11-09 18:55:41 +02:00
Nyall Dawson
6ef4557b2b
Update SAGA ParameterSelection parameters
2017-11-09 18:55:12 +02:00
Nyall Dawson
ca0b7a2639
Fix SAGA boolean parameters
2017-11-09 18:54:44 +02:00
Nyall Dawson
178708590d
More followups to SAGA raster parameter handling
2017-11-09 18:54:13 +02:00
Nyall Dawson
1fc395b4fa
GeoAlgorithmExecutionException -> QgsProcessingException
2017-11-09 18:54:13 +02:00
Nyall Dawson
65faf542e0
Fix excepthook handling in standalone scripts
2017-11-09 18:54:13 +02:00
Nyall Dawson
85b8502444
Fix parsing of saga params
2017-11-09 18:54:13 +02:00
Nyall Dawson
eca9bdc3d5
Start porting saga algorithm base to new API
2017-11-09 18:53:02 +02:00
Matthias Kuhn
7c8cdff216
Fix used-before-assignment
2017-10-16 23:21:51 +02:00
Mario Baranzini
78af413dcc
Remove python future compatibility layer
2017-08-07 10:27:15 +02:00
Giovanni Manghi
dfc9285121
master: fix SAGA LTR mosaiking tool
2017-07-21 14:42:14 +01:00
Nyall Dawson
a87ca09e34
Move some temp file/folder utils to c++
2017-06-22 06:48:25 +10:00
PedroVenancio
b49f53bac8
Changes SAGA io_gdal RESAMPLING method to B-Spline Interpolation, as SAGA default, and add the Resampling Method parameter to SAGA Raster Calculator, as explained in https://issues.qgis.org/issues/16646
2017-06-16 20:47:18 +01:00
Nyall Dawson
0c3ad14c79
Adapt more python code to new API
2017-06-06 07:41:19 +10:00
Nyall Dawson
ba03f1a13a
Move minimum layer extent calculation to c++
2017-06-06 07:41:19 +10:00
Nyall Dawson
189f804714
Adapt more code to c++ API
2017-06-06 07:41:19 +10:00
Nyall Dawson
ef59d0c454
Port parameter checking to c++
2017-06-06 07:41:19 +10:00
Nyall Dawson
4cb7d18b1c
Push parameters into processAlgorithm and related functions
2017-06-06 07:41:19 +10:00
Nyall Dawson
168f16276c
Remove help related methods from GeoAlgorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
03e40f7497
[processing] Remove all remaining algorithm copies
...
Algorithms are no longer copied - just a single const instance
of each algorithm is used
2017-06-06 07:41:19 +10:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +10:00
Nyall Dawson
f84d703234
Add method QgsProcessingUtils::mapLayerFromString
...
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.
This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Nyall Dawson
e9f13d1ea3
Just use standard QgsMessageLog functionality instead of a dedicated
...
method for processing
2017-04-26 13:57:06 +10:00
Nyall Dawson
1394c28d13
[processing] Move some log handling to c++ class
2017-04-26 13:56:29 +10:00
Nyall Dawson
dd4f530cfb
[processing] Pass context argument to processAlgorithm
2017-04-26 12:53:35 +10:00
Nyall Dawson
ff32054da6
Fix some breakage
2017-04-07 13:21:28 +10:00
Nyall Dawson
2a1a71574a
Move algorithm id (previously commandLineName) to QgsProcessingAlgorithm
2017-04-07 13:21:28 +10:00
Nyall Dawson
b3142a0baf
Move provider algorithm handling to QgsProcessingProvider
2017-04-07 13:21:28 +10:00
Nyall Dawson
377b181c4e
Port more processing dataobjects methods to c++
...
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
51517fd77e
Merge pull request #4311 from nyalldawson/proc_c4
...
Simple c++ base class for processing algorithms
2017-04-05 06:17:11 +10:00
volaya
439b9de98d
fixed saga algorithm to adapt it to 2.3 syntax
2017-04-04 11:04:22 +02:00
Nyall Dawson
a0bd464232
Use formatted name for algorithm names
...
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
6987d7b37c
Port handling of algorithm names to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
dc729c1b5a
Move algorithm group handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
faa8a653b2
Move algorithm icon handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00