62 Commits

Author SHA1 Message Date
volaya
e353d226a8 [processing] evaluate parameters before executing algorithm
This allows a better use of expressions
2016-10-05 12:35:02 +02:00
volaya
01f380863f [processing] improvements for scripts and R scripts 2016-10-05 12:35:01 +02:00
volaya
efd73a491f [processing] fixes for new parameters architecture
includes better managing of crd and extent parameters in models, not requiring now the use of modeler-only lags
2016-10-05 12:35:00 +02:00
volaya
b298c76ee4 [processing] implemented parameter widget wrappers
Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
	python/plugins/processing/gui/ExtentSelectionPanel.py
	python/plugins/processing/modeler/ModelerParametersDialog.py
2016-10-05 12:34:58 +02:00
volaya
8cc9a50a52 [processing] moved script syntax from script algorithm class to parameters classes 2016-10-05 12:34:57 +02:00
arnaud.morvan@camptocamp.com
6158e9b340 Add CrsWidgetWrapper 2016-10-05 12:34:55 +02:00
arnaud.morvan@camptocamp.com
728be70c0b Create the boolean widget wrapper 2016-10-05 12:34:50 +02:00
arnaud.morvan@camptocamp.com
ecb7b3a096 Remove metadata from parameter.todict (do not save in model) 2016-10-05 12:34:49 +02:00
arnaud.morvan@camptocamp.com
2ad27b172e Add metadata property to parameters 2016-10-05 12:34:48 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
arnaud.morvan@camptocamp.com
d85de7ccd8 Fix ParameterGeometryPredicate.getValueAsCommandLineParameter 2016-09-08 19:44:45 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
7e26124c2b [processing] support for output geometry types (work in progress) 2016-09-02 09:28:32 +03:00
Nyall Dawson
fbc5e0fc8e Fix indentation 2016-06-07 11:11:59 +10: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
Marco Bernasocchi
2dea7c8c93 [processing] allow optional in all getAsScriptCode 2016-06-03 09:27:51 +02:00
Juergen E. Fischer
797826ea5b spelling fixes 2016-05-31 03:36:27 +02:00
Alexander Bruy
2f5c3a570a [processing] fix expressions handling in ParameterString (fix #14834)
Add initial set of tests for ParameterString
2016-05-23 14:28:10 +03:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Septen
f0be0457d5 Typo fixes. 2016-03-23 15:25:15 +03:00
Septen
736be486e7 Typo fixes. Stylystic fixes. 2016-03-23 05:43:59 +03:00
Septen
d5acc211c8 ParameterMultipleInput minor fixes. 2016-03-23 01:22:44 +03:00
Septen
4a046b7db1 Merge branch 'master' of git://github.com/qgis/QGIS 2016-03-22 23:51:59 +03:00
Septen
d312be9f18 (ref #12580).ParameterMultipleInput:allow to define min number of
inputs.
2016-03-22 02:35:03 +03:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Alexander Bruy
58d40d16fa [processing] add ParameterPoint for selecting point on canvas (fix #5733) 2016-02-29 12:41:26 +02:00
Médéric RIBREUX
5d19a3b21b [Processing] Fix ParameterNumber float detection (with unit tests) 2016-02-09 20:07:32 +01:00
Juergen E. Fischer
34bc4ad788 fix ProcessingParametersTest test 2016-01-07 01:00:28 +01:00
volaya
946f4e4814 [processing] correctly parse default value for boolean parameters upon construction 2016-01-06 09:34:08 +01:00
rldhont
8798c42339 [Processing] Parameter default value is None 2015-12-24 15:14:02 +01:00
rldhont
7754f17a0b [Processing] Manage default value for parameter
To finalize commit 3472ac80d8bdd030090ce81cb686f3cfcbd913cd update processing to well manage default value
2015-12-24 15:14:02 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
volaya
5c1da4ebae [Processing] correctly parse value of boolean argument for parameters 2015-11-08 23:15:56 +01:00
volaya
227af8ac8e [processing] brought back 'export model as python' functionality 2015-11-06 14:02:11 +01:00
volaya
b3b33799d9 [processing] fixes for representing input values in history 2015-11-06 11:36:21 +01:00
volaya
8187ad50c9 [processing] some fixes for supporting optional parameters 2015-11-04 09:51:44 +01:00
rldhont
3472ac80d8 [Processing] Manage optional parameters
Can't set parameters to null (None or '') if the parameter is not optional
2015-11-04 09:51:34 +01:00
radosuav
5211423df5 [Processing] Fix setting of "multiline" setting for ParameterString 2015-09-22 15:35:26 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
volaya
6ce2333f98 [processing] more improvements for storing db data in log
This allows reusing commands that use a db-based layer.

It disables parameter validity checks for layers. Those checks should now be performed at the algorithm level before executing (not yet implemented)
2015-06-23 09:07:50 +02:00
volaya
06d250ef89 [processing] more correct storing of DB data in log 2015-06-23 09:07:48 +02:00
arnaud.morvan@camptocamp.com
aba4fe0fe2 Fix processing ParameterTable.setValue 2015-05-22 17:35:23 +02:00
volaya
a58085bf4e [processing] allow selection parameters with option populated from data source 2015-05-21 09:05:26 +02:00
arnaud.morvan@camptocamp.com
84936e59e7 Add ParameterGoemetryPredicate and use it in XxxByLocation algorithms 2015-02-06 15:00:18 +01:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
volaya
098aa681f0 Merge pull request #1852 from radosuav/changes
[Processing] Small fixes and additions
2015-01-26 08:38:19 +01:00
Juergen E. Fischer
cce2eb50cb indentation update 2015-01-22 20:56:02 +01:00
radosuav
b835f406fa [Processing] Allow user defined projections in Processing. 2015-01-22 14:38:47 +01:00
radosuav
82f043c28c [Processing] Add support for input rasters with sublayers. 2015-01-20 12:36:46 +01:00