Martin Dobias
63d1cfddc8
Fix QgsExpressionContextUtils::projectScope() usage in processing
2017-01-06 11:34:55 +08:00
Alexander Bruy
69e9d99c49
[processing] fix GRASS provider (follow up a1642a37)
2016-12-29 14:09:02 +02:00
Matthias Kuhn
3fba3ac775
[processing] Quote and escape script exported ParameterString
2016-12-22 11:26:28 +01:00
Matthias Kuhn
55e3ea033a
[processing] Fix some script parameter export/import issues
2016-12-22 11:21:32 +01:00
Matthias Kuhn
0a686c4fca
[processing] Make ParameterFixedTable scriptable
2016-12-21 14:21:36 +01:00
Matthias Kuhn
2af00beddc
[processing] Don't hide errors when resolving script paramters
2016-12-21 13:17:31 +01:00
Alexander Bruy
97780b6be6
[processing] fix incorrect parameter construction
2016-12-20 14:41:58 +02:00
volaya
0035c97f5b
Merge pull request #3725 from arnaud-morvan/processing_geometry_predicate
...
[processing] Remove parameter geometry predicate
2016-12-13 15:58:16 +01:00
arnaud.morvan@camptocamp.com
322a565b8b
[processing] Remove ParameterGeometryPredicate
2016-12-12 15:21:16 +01:00
arnaud.morvan@camptocamp.com
65a4e97a75
[processing] Support options as (value, text) in ParameterSelection
2016-12-12 15:12:55 +01:00
Nyall Dawson
bef5b5ed68
[processing][heatmap] custom parameter/widget for output resolution
...
Matches current behaviour of c++ heatmap plugin
2016-12-07 12:23:58 +10:00
volaya
420b7ec902
[processing] removed incompatible basestring check
2016-12-01 14:37:36 +01:00
volaya
fcc343724e
[processing] some fixes and changes in parameters and parameters panel
2016-12-01 12:50:27 +01:00
Nyall Dawson
08505b388a
[processing] Allow restricting fields to date/time types
2016-11-30 15:04:21 +10:00
Nyall Dawson
86ab3022b5
Remove layer extent and statistic variables from processing contexts
...
These variables take a lot of time to calculate and cause lots of
lengthy hangs in processing. (Eg add some moderately large rasters
to a project, then try to run any processing algorithm and QGIS
will freeze).
The layer extent can already be used in expressions via the
layer_property function, which only evalutes the extent if required
and only for layers it is used for.
The band stats for raster layers should be moved to a
band_statistic function in core which behaves the same way.
2016-11-22 11:17:38 +10:00
Nyall Dawson
377cba0b74
[processing] Use real map settings scope instead of custom canvasextent variables
2016-11-22 11:17:38 +10:00
Nyall Dawson
f24cda4402
[processing] Add unit tests for retrieving param from script code
...
And fix number param retrieving from script code
2016-11-13 20:34:35 +10:00
Nyall Dawson
28d7ceaef5
Some fixes to processing expression parameters
2016-11-11 20:13:12 +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
Sandro Santilli
06976a2e87
Make Extent and Extent CRS GDAL parameters optional
...
Specify what the default is when extent CRS is not specified.
Allow using "auto" to have extent automatically set to min covering extent.
Fixes #15685
2016-10-20 10:51:30 +02:00
nirvn
730b5b79ab
[processing] fix missing argument when calling getMinCoveringExtent()
2016-10-18 10:55:17 +07:00
volaya
25d0351d57
[processing] fixed creating params and outputs from description strings
2016-10-17 14:41:16 +02:00
volaya
bc0cdc7b0d
[processing] fixed handling of integer values
2016-10-05 12:39:02 +02:00
arnaud.morvan@camptocamp.com
4184934b9a
[processing] Apply 2to3 on changes
2016-10-05 12:39:01 +02:00
volaya
6f498a3138
[processing] removed debug line
2016-10-05 12:38:56 +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
36abbc427c
[processing] allow multiple values in ParameterSelection
2016-10-05 12:38:32 +02:00
volaya
53d0372cad
[processing] return copy of object dictionary in parameter todict method
2016-10-05 12:38:26 +02:00
volaya
d07aef9c5b
[processing] added missing return statement in getParameterFromString
2016-10-05 12:38:25 +02:00
volaya
0ea66299c8
[processing] fixed error in constructor of ParameterTableField
2016-10-05 12:38:23 +02:00
volaya
dfb4cdd34b
[processing] moved output value evaluation to output object itself
2016-10-05 12:38:20 +02:00
volaya
bd06316c9d
[processing] richer expressions in number parameters
2016-10-05 12:38:16 +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
bc06600871
[processing] more work on parameter wrappers
2016-10-05 12:35:03 +02:00
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