Feature request #8955
Processing in a standalone QGIS app
|Pull Request or Patch supplied:||Yes||Resolution:|
|Easy fix?:||No||Copied to github as #:||17619|
Currently it is not possible to use the processing module in a standalone QGIS application/script.
This is due in part to a dependence on the iface object, which is only available when running as a plugin within QGIS. In addition to this there will be issues with calling external programs/scripts using subprocess.Popen related to paths.
I've attached an example script (processing_standalone.py) which uses a mock iface object to allow the plugin to load. This can be used to run the 'qgis:*' algorithms, as they don't have any external dependencies. More work is needed to get things working with GRASS and SAGA, etc.
#6 Updated by Luigi Pirelli almost 2 years ago
- Description updated (diff)