Nyall Dawson
28f7a8b7e1
Move expression context generation out of parameters
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
ba03f1a13a
Move minimum layer extent calculation to c++
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
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
9997ab6e1e
Partially port wrappers to QgsProcessingParameterDefinition
...
And create a new WidgetWrapperFactory for creating a suitable wrapper
corresponding to a parameter
2017-06-06 07:41:19 +10:00
Nyall Dawson
77ab933788
Move alg character definitions to __init__
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
Nyall Dawson
168f16276c
Remove help related methods from GeoAlgorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
2d1579d28a
Port algorithm help to QgsProcessingAlgorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
1e788556f0
Port getCustomParametersDialog to QgsProcessingAlgorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
fb811766f8
Add framework for algorithm outputs
...
This somewhat changes the meaning of outputs from processing 2.x.
In 2.x processing outputs were used both as a method of specifying
inputs to algorithms (file paths to destination layers created
by the algorithm) AND pure outputs (such as statistics calculated
by the algorithm).
This is now split. The old input-type-outputs (destination layers)
are now input parameters (since the parameter value IS an input to the
algorithm). To differentiate them from parameters indicating pure
input layers a new "isDestination()" method was added to
QgsProcessingParameterDefinition.
Output definitions are now purely indications of values CREATED
by the algorithms. Suitable candidates are the existing calculated
stats and actual file path/URI of any layers created by the algorithm.
Moving forward we should ensure all algorithms output as much
useful information as possible - e.g. number of features processed,
number of skipped features, count null geometries encountered, etc...
2017-06-06 07:41:19 +10:00
Nyall Dawson
fac8ca4d4f
Move execution check to QgsProcessingAlgorithm
2017-06-06 07:41:19 +10:00
Nyall Dawson
03e40f7497
[processing] Remove all remaining algorithm copies
...
Algorithms are no longer copied - just a single const instance
of each algorithm is used
2017-06-06 07:41:19 +10:00
Nyall Dawson
b64a71df61
Port algorithm countVisibleParameters to c++
2017-06-06 07:41:19 +10:00
Nyall Dawson
2da85f8771
Temporarily deactivate all processing providers/algorithms
...
While the processing API is in such a state of flux it's
become unmaintainable to port these algorithms change-by-change.
Instead, disable them all until the API is fixed, and then we
can port them algorithm by algorithm and reactivate each
test in turn.
2017-06-06 07:41:19 +10:00
Nyall Dawson
ae97c333d6
Revert "Port algorithm countVisibleParameters to c++"
...
This reverts commit c3c694f8ccfbe0b64df14365f950f5895968a66a.
2017-05-15 10:24:38 +10:00
Nyall Dawson
c3c694f8cc
Port algorithm countVisibleParameters to c++
2017-05-15 08:44:28 +10:00
Nyall Dawson
6aa10c6817
[processing] Cleanup some layer/writer related handling
...
Ensure that layers created by QgsProcessingUtils::createFeatureSink
can always be retrieved using QgsProcessingUtils::mapLayerFromString
2017-05-09 15:29:41 +10:00
Nyall Dawson
06c4dea7ff
[processing] Remove vector.createVectorWriter
...
Use QgsProcessingUtils.createFeatureSink instead
2017-05-07 08:02:54 +10:00
Nyall Dawson
ee1236f067
[processing] Remove unused options argument from (create/get)VectorWriter
2017-05-03 06:25:30 +10:00
Nyall Dawson
8e70aa84fa
Merge pull request #4439 from arnaud-morvan/processing_run_context
...
[processing] Handle context in processing.run
2017-05-03 05:49:06 +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
Alexander Bruy
429e67e0f9
[processing] remove stuff related to R provider
2017-05-02 12:39:26 +03:00
Nyall Dawson
877775d2c0
Remove a bunch of unneeded imports
2017-05-02 14:47:58 +10: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
ac84326464
[processing] Fix executing models
2017-05-01 17:29:40 +10:00
Nyall Dawson
79d79d6c07
[processing] Fix some regressions following algorithm refactoring
2017-05-01 17:29:40 +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
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
86002f3b6f
Move createContext to dataobjects
2017-04-26 12:53:35 +10:00
Nyall Dawson
427c3b1684
Remove vector.features
...
Use QgsProcessingUtils.getFeatures instead
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
837ee29488
Indentation
2017-04-07 13:38:24 +10:00
Nyall Dawson
5a6f11d52e
Some cleanups
2017-04-07 13:21:28 +10:00
Nyall Dawson
ebd851993a
Remove processing specific methods for adding/removing providers
...
QgsProcessingRegistry methods should always be used instead
2017-04-07 13:21:28 +10:00
Nyall Dawson
fdcf04f9f3
Remove AlgorithmProvider
...
Totally ported to QgsProcessingProvider
2017-04-07 13:21:28 +10:00
Nyall Dawson
42a614154c
Also refactor provider context menu actions and remove from AlgorithmProvider
2017-04-07 13:21:28 +10:00
Nyall Dawson
651355d569
Refactor provider actions and remove from AlgorithmProvider
2017-04-07 13:21:28 +10:00
Nyall Dawson
117260dcf3
Remove activation control from AlgorithmProvider
...
Split between QgsProcessingProvider and subclasses
2017-04-07 13:21:28 +10:00
Nyall Dawson
ff32054da6
Fix some breakage
2017-04-07 13:21:28 +10:00
Nyall Dawson
3739c3aa51
Move tr out of AlgorithmProvider to subclasses
2017-04-07 13:21:28 +10:00
Nyall Dawson
9a97a87b4d
Use display name in algorithm help
2017-04-07 13:21:28 +10:00
Nyall Dawson
fb1cf1e185
Remove processing algList
...
All functionality has been moved to QgsProcessingRegistry
2017-04-07 13:21:28 +10:00
Nyall Dawson
4970bb4cd5
Move more algList functionality to QgsProcessingRegistry
2017-04-07 13:21:28 +10:00