235 Commits

Author SHA1 Message Date
Nyall Dawson
3ef7b3b7eb [processing] Use standard QGIS projection selection widget for CRS params 2016-11-13 20:34:35 +10:00
Nyall Dawson
08231b8b14 Merge pull request #3742 from nirvn/processing_fix_hasdependencies
[processing] check for parent alg dependencies in hasDependencies()
2016-11-12 15:09:26 +10:00
nirvn
f3d7e39abb [processing] harmonize modeler UI behavior with QGIS
- use [close without saving][cancel][save] option when closing
a modeler with unsaved changes
- invert mouse wheel zoom in/out to match that of QGIS' main
canvas window
- holding the mouse middle click and dragging will pan the
modeler view
2016-11-11 15:47:42 +07:00
nirvn
be2223fed3 [processing] check for parent alg dependencies in hasDependencies() 2016-11-11 13:08:01 +07:00
Nyall Dawson
5625d6e9b6 Expression parameters don't have to have parent layers 2016-11-11 13:26:31 +10:00
Nyall Dawson
132e76a596 [FEATURE][processing] New input type for expressions
This adds a new input type for expression inputs. Expression
inputs can be linked to a parent layer so that the builder
shows the correct fields and layer variables.

It's designed for two use cases:

1. to be used when an algorithm specifically requires an expression,
eg Select by Expression and Extract by Expression.

2. to be potentially used as a replacement input instead of string
or number literals in algorithms. Eg - if the simplify algorithm
tolerance parameter was replaced with an expression paremeter, then
this expression would be evaluated for every feature before
simplifying that feature. It would allow parameters to be calculated
per feature, as opposed to the current approach of calculating
a parameter once before running the algorithm. It would also
mean algorithms like "variable distance buffer" would no longer
be needed, as a single "buffer" algorithm could then be used
for either a fixed distance, field based, or expression based
distance.
2016-11-11 13:26:31 +10:00
Nyall Dawson
72118f91f9 [processing] When an algorithm has string parameters, also
accept numeric, file and table field inputs in modeler

This allows a non-string parameter to be reused as a string
parameter in contexts where it makes sense.
2016-11-11 13:26:31 +10:00
nirvn
45711d372e [processing] use algorithm description in modeler dependencies dialog 2016-11-10 10:21:12 +07:00
Nyall Dawson
3550cc99a6 [processing] Allow algorithms to specify tags
Tags are used while searching in the toolbox. This should help with
finding algorithms when the exact name is not known, eg
you could search for "envelope" or "bounds" and find the
'Polygon from Layer Extent' algorithm.

At the moment it's quite hard to discover algorithms which exist
when you don't know what their called and have to instead search
for every possible naming variant which could exist...
2016-11-08 10:15:31 +10:00
Nyall Dawson
fd15090521 Update identation 2016-11-08 08:51:22 +10:00
Nyall Dawson
6a99017bf0 [processing] Use with ... when opening files 2016-11-07 11:36:38 +10:00
Alexander Bruy
1c44d7471f Merge pull request #3695 from nirvn/processing_modeler_dblclick
[processing] resurrect editing of modeler item on double-click
2016-11-02 14:16:27 +02:00
Nyall Dawson
dd4b34ed16 [processing] Modeller should not be modal 2016-10-31 14:37:45 +10:00
nirvn
b48d20220e [processing] resurrect editing of modeler item on double-click 2016-10-31 11:18:22 +07:00
nirvn
bec379249e [processing] sort model input parameters to avoid random ordering 2016-10-31 10:53:13 +07:00
Nyall Dawson
3caccd531d [processing] Fix handling of multiple field input in modeller 2016-10-31 11:41:40 +10:00
Nyall Dawson
29ce141dc4 Merge pull request #3657 from nirvn/processing_modeler_mandatory
[processing] fix modeler parameter mandatory checkbox logic
2016-10-31 09:13:37 +10:00
Nyall Dawson
d5698be69f Fix some processing breakage 2016-10-31 09:12:39 +10:00
nirvn
8ee25cdfa8 [processing] fix modeleter mouse wheel zoom under qt5 2016-10-22 12:28:17 +07:00
nirvn
ddc44dfd89 [processing] fix modeler parameter mandatory checkbox logic 2016-10-22 12:01:30 +07:00
nirvn
bd7149ce16 [processing] fix broken modeler under pyqt5/python3 (fixes #15734) 2016-10-21 10:11:22 +07:00
volaya
22a6c473d9 [processing] alternative way of copying algorithms in a model.
should fix #15060 and #15480
2016-10-18 16:55:19 +03:00
volaya
eb5fc90f44 [processing] dont use hidden outputs when exporting to python or displaying alg help
fixes #14998

Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
2016-10-18 16:55:19 +03:00
arnaud.morvan@camptocamp.com
4184934b9a [processing] Apply 2to3 on changes 2016-10-05 12:39:01 +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
arnaud.morvan@camptocamp.com
8d16161742 Call postInitialise in modeler Dialog 2016-10-05 12:38:41 +02:00
volaya
e6f9499716 [processing] improvements for modeler UI
Do not show help tab if there is no help

add "optional" tag for optional parameters
2016-10-05 12:38:37 +02:00
volaya
c8f35fb4ce [processing] fixed typo in modeler/ModelerParameterDefinitionDialog.py 2016-10-05 12:38:33 +02:00
volaya
ccdf372250 [processing] UI improvement for defining model parameters 2016-10-05 12:38:27 +02:00
volaya
cdcc01e97c [processing] removed debug lines 2016-10-05 12:38:22 +02:00
volaya
96406e52cd [processing] removed message dialog when saving model. Using message bar instead 2016-10-05 12:38:15 +02:00
volaya
4751b70675 [processing] fixed advanced parameters in modeler 2016-10-05 12:38:13 +02:00
volaya
e08fdaa444 [processing] support for expressions in numerical values in modeler
includes cleanup of modeler, to adapt to latest changes in parameters architecture
2016-10-05 12:38:11 +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
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
arnaud.morvan@camptocamp.com
a69b358aa7 Create dedicated widget wrapper for modeler 2016-10-05 12:34:56 +02:00
arnaud.morvan@camptocamp.com
bb0938a5fe Use boolean wrapper in modeler algorithm dialog 2016-10-05 12:34:54 +02:00
volaya
484fd18ef6 [processing] fixed add model from file
fixes #15335
2016-10-05 12:34:47 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Juergen E. Fischer
6b8130d54d remove pngs which are available as svg
(cherry picked from commit 1cbb842feb393b7bab2b31b2e970c48816c58d3c)
2016-09-11 22:33:41 +02:00
volaya
f38e03b37d Merge pull request #3454 from arnaud-morvan/processing_modeler_parameter_extent
[Processing] Fix on extent parameter in modeler parameters dialog
2016-09-05 09:04:34 +02:00
volaya
8de9757f54 Merge pull request #3456 from arnaud-morvan/processing_apply_use_coverge_on_execution
[Processing] Calculate min coverage on execution
2016-09-05 09:03:06 +02:00
Nyall Dawson
eba6101357 Fix broken python save/open dialogs under PyQt5
Will break stuff under PyQt4... oh well, better stuff working on Qt5
then Qt4
2016-09-05 11:41:49 +10:00
arnaud.morvan@camptocamp.com
c369710667 Calculate min coverage on execution 2016-09-04 17:58:17 +02:00
arnaud.morvan@camptocamp.com
b18cfc99e6 Fix on extent parameter in modeler parameters dialog 2016-09-04 16:33:43 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
80653c7aff [processing] adopt native algs to use output geomerty 2016-09-02 09:28:32 +03:00
Alexander Bruy
12d6e15fda [processing] support for output geometry types in scripts and modeler 2016-09-02 09:28:32 +03:00
Alexander Bruy
7e26124c2b [processing] support for output geometry types (work in progress) 2016-09-02 09:28:32 +03:00