Alexander Bruy
eb7a187a88
[processing] add missed imports ( fix #17843 )
2018-01-15 20:13:38 +02:00
Alexander Bruy
7cad24d82f
[processing] improve layout of the raster calculator dialog
2018-01-15 19:25:08 +02:00
Alexander Bruy
490aad112f
[processing] quote layer names in raster calculator ( fix #17847 )
2018-01-15 19:25:08 +02:00
volaya
418d58752f
[processing] added missing method to custom field calculator dialog
...
A much better way of doing this would be to have the dialog extend qgsprocessingalgorithmdialogbase, or to take an approach like the one used in the raster calculator, with wrapper widgets.
This is just a patch, since that option might require a larger amount of work.
2018-01-15 14:56:36 +01:00
Matthias Kuhn
b619dcb00a
Refactor fields configuration in the modeler does not insist on layer
...
Inside the modeler, there is not enough knowledge about the layer on
which the refactor fields algorithm will run.
Let's be graceful with error messages here therefore.
2017-12-14 09:04:07 +01:00
Matthias Kuhn
e9d4c06cb2
Make string translatable
2017-12-14 09:04:07 +01:00
Alexander Bruy
3d4a59bb8b
[processing] cleanup files from unused code and remove some files
2017-11-28 12:27:45 +02:00
Alexander Bruy
0059b2b692
[processing] remove Python 2 compatibility layer
2017-11-28 12:27:45 +02:00
Mathieu Pellerin
97f749e6b4
[processing] fix error when adding refactor fields alg in empty model
...
(fixes #17421 )
2017-11-24 18:04:50 +07:00
Alexander Bruy
ee8ef42c42
[processing] boolean fieds support in the Refactor Fields algorithm ( fix #17168 )
2017-11-16 12:46:00 +02:00
Nyall Dawson
e91ee5b71c
More flexible API for interpolation
...
E.g. adds API support for interpolating by m value
2017-11-03 09:18:45 +10:00
Nyall Dawson
73306f1266
Update python code
2017-11-03 07:47:40 +10:00
Nyall Dawson
247d2657ca
Fix invalid regular expression warnings
2017-09-01 09:00:57 +10:00
Nyall Dawson
6144b1c5d9
Resurrect Field Calculator algorithm, add test
2017-08-20 18:21:02 +10:00
arnaud.morvan@camptocamp.com
4b5d81b370
[processing] Add Aggregate algorithm
2017-08-16 10:46:15 +02:00
arnaud.morvan@camptocamp.com
b26e6812d4
[processing] Check all parameter's values in ModelerParametersDialog
...
Check that all parameter's values pass the validity check,
even if not returned as QgsProcessingModelChildParameterSource.
In case of list, tests that it is really a QgsProcessingModelChildParameterSource list,
and create a QgsProcessingModelChildParameterSource from the list if it is not the case
(useful for custom parameters that return lists as ParameterFieldsMapping).
2017-08-14 13:48:50 +02:00
arnaud.morvan@camptocamp.com
b3a9e46cfe
[processing] Port refactor fields to new API
2017-08-14 13:48:50 +02:00
Matthias Kuhn
3dc6daaffa
Fix typo
2017-07-31 09:35:28 +02:00
Matthias Kuhn
973d3515d1
Avoid endless wait cursors
2017-07-30 21:51:22 +02:00
Nyall Dawson
4fa69643fc
Fix heatmap widget wrapper, update to use source input
2017-07-13 20:52:16 +10:00
Nyall Dawson
63611b1d8f
Port script code functions to c++ classes
...
Restore logging executed algorithms
2017-06-12 15:59:56 +10:00
Nyall Dawson
bdf051a03a
Partially port a trial python alg to new API
2017-06-06 07:41:19 +10:00
Nyall Dawson
416770b197
Remove no longer required _resolveLayers method
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
Salvatore Larosa
48ecee5643
[processing] fix duplicates fields name in field calculator algorithm when switching between layers (followup c2699b4)
2017-05-22 23:29:26 +02:00
Alexander Bruy
c2699b4640
[processing] reset variables list in field calculator on layer change ( fix #15633 )
2017-05-04 10:14:37 +03:00
Nyall Dawson
877775d2c0
Remove a bunch of unneeded imports
2017-05-02 14:47:58 +10:00
Nyall Dawson
4ed18b112a
Add a bunch of missing QgsProcessingUtils imports
2017-05-02 14:36:23 +10:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +10:00
Nyall Dawson
11fb72eef7
Only expose a single mapLayerFromString method in QgsProcessingUtils
2017-05-02 12:33:22 +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
Alexander Bruy
12252030ac
[processing] uncheck Z-coordinate on layer change in Interpolation
...
algorithm (fix #10010 )
2017-05-01 13:00:23 +03:00
Nyall Dawson
fd2c18ee16
Refactor processing writer to use QgsFeatureSink, and to store
...
temporary output layers in the provided processing context
Should fix loss of intermediate memory layers when running
a multi-step model
2017-04-26 17:38:40 +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
Denis Rouzaud
0b0e8a6a89
move QgsFieldModel and QgsFieldProxyModel to core and sipify
2017-04-19 16:44:36 +02: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
ee29fa66f9
Use QgsMapLayerComboBox in processing field calculator
2017-04-05 18:39:12 +10:00
Nyall Dawson
8ffdb362cc
Port some processing dataobjects routines to c++
2017-04-05 15:27:17 +10:00
Nyall Dawson
99f186a7d2
Clean up progress handling in QgsProcessingFeedback
2017-03-29 09:02:30 +10:00
Alexander Bruy
c1e6ba0f40
[processing] rename AlgorithmExecutor's runalg() and runalgIterating()
...
to avoid overlapping with general functions and improve readability
2017-03-22 19:11:36 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Alexandre Neto
290758a4bc
More PNG to SVG replacements ( #4065 )
2017-01-28 11:17:43 +07:00
Juergen E. Fischer
a61b9222de
Qt 5.2 has QComboBox::currentData
2017-01-25 03:28:53 +01:00
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
Martin Dobias
63d1cfddc8
Fix QgsExpressionContextUtils::projectScope() usage in processing
2017-01-06 11:34:55 +08:00