Feature request #8955

Processing in a standalone QGIS app

Added by Joshua Arnott over 10 years ago. Updated about 5 years ago.

Assignee:Victor Olaya
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.

processing_standalone.py Magnifier - Example of dummy iface class (2.44 KB) Joshua Arnott, 2013-10-27 04:21 AM


#1 Updated by Giovanni Manghi over 10 years ago

  • Assignee set to Victor Olaya
  • Pull Request or Patch supplied changed from No to Yes

#2 Updated by Alexander Bruy about 10 years ago

  • Category set to 63

#3 Updated by Giovanni Manghi over 9 years ago

  • Project changed from 78 to QGIS Application
  • Category deleted (63)

#4 Updated by Giovanni Manghi over 9 years ago

  • Category set to Processing/Core

#5 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

Also available in: Atom PDF