Feature request #8955
Processing in a standalone QGIS app
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/Core | ||
Pull Request or Patch supplied: | Yes | Resolution: | |
Easy fix?: | No | Copied to github as #: | 17619 |
Description
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.
History
#1 Updated by Giovanni Manghi about 11 years ago
- Assignee set to Victor Olaya
- Pull Request or Patch supplied changed from No to Yes
#2 Updated by Alexander Bruy over 10 years ago
- Category set to 63
#3 Updated by Giovanni Manghi about 10 years ago
- Project changed from 78 to QGIS Application
- Category deleted (
63)
#4 Updated by Giovanni Manghi about 10 years ago
- Category set to Processing/Core
#5 Updated by Giovanni Manghi over 7 years ago
- Easy fix? set to No
#6 Updated by Luigi Pirelli over 5 years ago
- Description updated (diff)