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
c1d9d57dd2
First working pure c++ algorithms
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
Nyall Dawson
f1c53c3aa4
Refactor Algorithm setParamValues -> getParamValues
...
Now returns a dict of parameter inputs for the algorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
134c04b8bb
Move getParametersPanel out of algorithm class
...
It's a gui related method, so shouldn't be in core class
2017-06-06 07:41:19 +10:00
arnaud.morvan@camptocamp.com
e232a0809c
[processing] Handle context in processing.run
...
Fix #15985 (Concave hull)
2017-05-02 17:04:57 +02:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +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
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
1394c28d13
[processing] Move some log handling to c++ class
2017-04-26 13:56:29 +10:00
Nyall Dawson
86002f3b6f
Move createContext to dataobjects
2017-04-26 12:53:35 +10:00
Nyall Dawson
adc7cf0ec2
Add context argument to vector.features
2017-04-26 12:53:35 +10:00
Nyall Dawson
dd4f530cfb
[processing] Pass context argument to processAlgorithm
2017-04-26 12:53:35 +10: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
8ffdb362cc
Port some processing dataobjects routines to c++
2017-04-05 15:27:17 +10:00
Nyall Dawson
6987d7b37c
Port handling of algorithm names to QgsProcessingAlgorithm
2017-04-03 21:17:45 +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
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +01:00
Nyall Dawson
3ecafb3472
[processing] Allow extent parameters to avoid matching layer CRS check
2017-02-14 05:49:23 +10: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
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
volaya
fcc343724e
[processing] some fixes and changes in parameters and parameters panel
2016-12-01 12:50:27 +01:00
nirvn
c87839f054
[processing] fix ExtentSelectionPanel's getValue()
2016-11-15 09:07:58 +07:00
Alexander Bruy
9d6acbdb99
[processing] add missed imports
2016-10-18 20:57:34 +03:00
Alexander Bruy
700441eec9
[processing] remove debug line and fix spatial index creation
2016-10-18 16:55:19 +03:00
volaya
b83fbb16c9
[processing] warn if extent might not be in the expected CRS
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
volaya
8ce93b102c
[processing] removed unused imports
2016-10-05 12:38:31 +02:00
volaya
5464c4501b
[processing] use QgsMessage bar in algorithm dialogs
2016-10-05 12:38:30 +02:00
volaya
c491c01266
[processing] changes to allow custom parameter dialog adapt to new parameter architecture
2016-10-05 12:38:21 +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
e353d226a8
[processing] evaluate parameters before executing algorithm
...
This allows a better use of expressions
2016-10-05 12:35:02 +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
6158e9b340
Add CrsWidgetWrapper
2016-10-05 12:34:55 +02:00
arnaud.morvan@camptocamp.com
f3c9aaaa2b
Use boolean wrapper in standard algorithm dialog
...
Conflicts:
python/plugins/processing/gui/AlgorithmDialog.py
2016-10-05 12:34:52 +02:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
arnaud.morvan@camptocamp.com
c369710667
Calculate min coverage on execution
2016-09-04 17:58:17 +02:00
Alexander Bruy
65db336eaf
[processing] move some constants to the dataobjects module
2016-09-02 09:28:45 +03:00
volaya
008d3cd79a
[processing] fixed extent selection from batch processing interface
...
fixes #15408
2016-08-23 14:41:20 +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
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
volaya
a7f41dc4c5
[processing] do not reject string parameters if they contain an unparsable expresion
2016-05-17 08:06:56 +02:00
Alexander Bruy
0c8f6f7fbb
fix indentation and typo
2016-05-13 09:32:13 +03:00
Alexander Bruy
730c5806aa
Merge branch 'processing_exps' of https://github.com/volaya/QGIS into processing_exps
...
Conflicts:
python/plugins/processing/gui/NumberInputPanel.py
python/plugins/processing/gui/OutputSelectionPanel.py
2016-05-13 09:26:55 +03:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
volaya
2535c0a9c1
[processing] better expression context building
2016-04-26 08:33:57 +02:00
volaya
ac0bff32bf
[processing] added support for expressions in some input params and outputs
2016-04-25 14:21:13 +02:00
volaya
297f4669fd
[processing] added preconfigured algorithms
2016-04-07 12:03:39 +02:00