45 Commits

Author SHA1 Message Date
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
rldhont
2fe7caf787 [Processing] Saga: update gdal_io and Flow Accumulation (Flow Tracing) 2017-03-22 19:17:18 +01:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Alexander Bruy
1430e93340 [processing] improve SAGA version check. Fix getCopy() method 2017-02-14 12:55:33 +02:00
Alexander Bruy
732b501db1 [processing] support only SAGA LTR 2017-02-09 11:49:22 +02:00
volaya
aa60bfecb2 [processing] New system for handling SAGA versions
This commit sets a different way of handling SAGA versions and a new way of checking saga installations

This is done to fix the messy situation that SAGA causes due to its API changing in each release.
2015-01-15 10:27:18 +01:00
Giovanni Manghi
9024badc60 fix modeller with saga tools 2014-10-31 11:04:15 +00:00
volaya
ad2d9440e4 [processin] fixed extent checking in saga algorithm 2014-07-23 01:19:54 +02:00
volaya
f6bf4f19db [processing] improved SAGA multiple extents detection 2014-07-23 01:19:52 +02:00
volaya
6486594f57 [Processing] Refactoring of parameters and outputs
It also adds some changes in the core and tools package, to provide a cleaner structure
2014-07-14 14:47:05 +02:00
Victor Olaya
3d152393d7 [processing] If SAGA/OTB exist as bundled app, do not allow manual configuration 2014-06-16 12:04:25 +02:00
volaya
925b91f48b [processing] fixed #10575 2014-06-13 14:09:41 +02:00
Juergen E. Fischer
5b2824f788 indentation update 2014-05-21 22:18:59 +02:00
Victor Olaya
fad280edd0 [processing] rewrote saga raster calculator as individual algorithm 2014-05-21 17:35:30 +02:00
Victor Olaya
202d331abb [processing] simplified saga algorithms
Now it assumes matching grid extents and does not perform resampling
2014-05-21 17:34:32 +02:00
Juergen E. Fischer
f355ea6d7c identation update 2014-04-19 22:14:33 +02:00
Victor Olaya
1d821d6378 [processing] fixed wrong help url to Processing manual 2014-04-19 20:49:22 +02:00
Victor Olaya
bce5b899a2 [processing] improvements in help for algorithms
Avoid creating temporary helpfiles
Added basic converter to convert rst into html on the fly
Added SAGA help files
2014-04-19 20:49:18 +02:00
Victor Olaya
9b277cb040 [processing] refactoring to put all algorithm providers under a single module 2014-04-19 20:49:17 +02:00