71 Commits

Author SHA1 Message Date
Nyall Dawson
ede452be85 [processing] Port feedback object to c++
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
Nyall Dawson
04eb293362 [processing] Move some SVG icons out of plugin to themes
...and swap to using QgsApplication methods for retrieving cached icons,
implement svgIconPath for providers with SVG icons
2017-01-11 10:55:16 +10:00
Nyall Dawson
bb24dfe245 [processing] c++ base class for providers
Nothing particularly exciting here yet, but this commit
moves the definition of the provider base class to a c++
QgsProcessingProvider abstract base class.

As part of this some existing python methods were renamed
to make their use clearer and to fit with the QGIS c++
api conventions:

- getName was renamed to id
- getDescription was renamed to name
- getIcon was renamed to icon

These API breaks are documented
2017-01-11 10:55:15 +10:00
Nyall Dawson
0484769b7d [processing] Use subprocess.DEVNULL instead of open(os.devnull) 2016-11-07 12:13:18 +10:00
Nyall Dawson
6a99017bf0 [processing] Use with ... when opening files 2016-11-07 11:36:38 +10:00
Matteo Ghetta
904f49eceb [processing] Missing import fixed for R algorithm 2016-10-18 10:08:36 +02:00
Alexander Bruy
3407ced90e fix indentation
Conflicts:
	python/plugins/processing/gui/BatchInputSelectionPanel.py
	python/plugins/processing/gui/wrappers.py
2016-10-05 12:38:50 +02:00
volaya
fe5d0166cc [processing] added multiple option to ParameterTableFIeld
removed ParameterTableMultipleField and did some cleanup
2016-10-05 12:38:09 +02:00
volaya
01f380863f [processing] improvements for scripts and R scripts 2016-10-05 12:35:01 +02:00
Alexander Bruy
cc62c52269 [processing] add icon caching for other providers 2016-10-04 19:53:21 +03:00
rldhont
37951baf45 [Processing] Uses os.path.join instead of + os.sep + (#3552) 2016-10-01 08:35:56 +02:00
rldhont
4feeab85a5 [Processing][Rscripts] Use temp script filename
The build RScript is stored in the User folder, so the script is erased at each RAlgorithm execute.
Server side or for debugging this could be a problem.
So processing_script.r will be stored in temp folder.
2016-09-28 11:05:41 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Matteo
f3bbf897d2 Small fix in write.csv option (#3225) 2016-06-20 21:23:05 +02:00
rldhont
021da12c9f [BUGFIX][Processing] RScript: Insert None value as NULL 2016-06-06 15:18:10 +02:00
rldhont
2a746f493f [BUGFIX][Processing] RScript: Add name token 2016-06-06 15:07:20 +02:00
Matthias Kuhn
e7b04f24f9 Tabs > Spaces 2016-06-04 12:34:42 +02:00
Marco Bernasocchi
f9ab7223fc [processing] ParameterTableMultipleField type added
This adds a widget with multiple column attributes selector
2016-06-03 09:27:51 +02:00
rldhont
fda06c0c45 [Processing] Add optional capabilities to R scripts 2016-05-31 19:12:38 +02:00
rldhont
ab28d527d5 [BUGFIX][Processing] R: Extent from raster package is "xmin, xmax, ymin, ymax"
Extent from raster package is like in Processing
http://www.inside-r.org/packages/cran/raster/docs/Extent
2016-05-31 19:10:54 +02:00
rldhont
bb41cceb34 [Processing] Fix getParameterDescriptions
Add import json for script and r
return descs and not None
2016-05-31 17:25:05 +02:00
rldhont
8592a7e3ac [Processing] Add shortHelp for Scripts, Models and R
And enhance getParameterDescriptions
2016-05-28 09:32:49 +02:00
volaya
d4802e5e9e Merge pull request #3109 from rldhont/bugfix_processing_getParameterDescriptions
[BUGFIX][Processing] Add getParameterDescriptions to R, Model and Scr…
2016-05-26 17:11:46 +02:00
rldhont
53089188d5 [BUGFIX][Processing] Add getParameterDescriptions to R, Model and Script algo 2016-05-26 16:53:10 +02:00
Alexander Bruy
d16f04bf3a [processing] support multiple scripts/models folders (fix #10476) 2016-05-26 13:56:21 +03:00
volaya
68379963d2 Merge pull request #3103 from rldhont/bugfix_processing_rscript_output_table
[BUGFIX][Processing][Rscript] Write output Table
2016-05-25 07:36:12 +02:00
rldhont
3b7c0fc04f [BUGFIX][Processing][Rscript] Write output Table
Add support forwriting  output table to Rscript command.
2016-05-24 21:52:02 +02:00
rldhont
f470c531d8 [BUGFIX][Processing][Rscript] Use CRS Parameter
Add support for CRS parameter to Rscript command.
2016-05-24 21:38:59 +02:00
rldhont
5d7e218b04 [BUGFIX][Processing][Rscript] Use Extent Parameter
Add support for extent parameter to Rscript command.
2016-05-24 16:01:30 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Alexander Bruy
abda90fe0d [processing] filter items in toolbox using translated and original names (fix #13764) 2016-04-11 15:57:22 +03:00
volaya
5131e93e1f [processing] extra checks to avoid issues with previous versions values 2016-04-05 09:55:41 +02:00
Alexander Bruy
aef26c90f3 [processing] more HiDPI fixes (refs #14474) 2016-04-01 16:48:04 +03:00
Alexander Bruy
660bb27388 [processing] replace some raster icons with SVG to improve HiDPI support (refs #14474) 2016-03-25 15:19:52 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Alexander Bruy
dd68c33eb4 [processing] add support for ParameterPoint to major algorothm providers 2016-02-29 12:41:27 +02:00
Alexander Bruy
6800c8d9da indentation 2016-02-27 14:50:55 +02:00
Alexander Bruy
ab866d9863 Merge branch 'master' of https://github.com/ninsbl/QGIS into processing-r 2016-02-27 14:16:15 +02:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
Stefan Blumentrath
1ce66b75d8 Detect R installation 2016-01-28 11:57:38 +01:00
Alexander Bruy
f0cb706a5d [processing] exclude commented R libraries when generating dependencies list (fix #14143) 2016-01-20 18:36:22 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00
Juergen E. Fischer
66a3d02240 integrate processing into update_ts.sh (also includes all translations
in the repository and none outside of it).
2015-07-26 04:28:37 +02:00
volaya
b80a1bcac5 [processing] fixed handling of folders and files in settings
fixes #12511
2015-06-26 12:00:02 +02:00
Alexander Bruy
daee595366 [processing] allow to specify geometry type for input vectors in R
scripts
2015-05-21 12:57:50 +03:00
volaya
1ad36c4afb [processing] added support for online R scripts 2015-05-20 21:11:41 +02:00
volaya
5a00912b3d [processing] more friendly error message when layers not created
This commit includes changes to the log system as well, which now logs only algorithms. Messages are logged to the QGIS logging system
2015-05-20 21:11:41 +02:00
Alexander Bruy
30dbd8fd5b [processing] drop resources.qrc and load images dynamically. Also remove
unused images
2015-05-19 15:30:25 +03:00