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.
#1 Updated by Giovanni Manghi over 9 years ago
- Assignee set to Victor Olaya
- Pull Request or Patch supplied changed from No to Yes
#2 Updated by Alexander Bruy about 9 years ago
- Category set to 63
#3 Updated by Giovanni Manghi over 8 years ago
- Project changed from 78 to QGIS Application
- Category deleted (
#4 Updated by Giovanni Manghi over 8 years ago
- Category set to Processing/Core
#5 Updated by Giovanni Manghi about 6 years ago
- Easy fix? set to No
#6 Updated by Luigi Pirelli over 4 years ago
- Description updated (diff)