[QGIS-Developer] QEP 140: QGIS Processing standalone executable

Nyall Dawson nyall.dawson at gmail.com
Thu Feb 28 18:21:12 PST 2019


On Wed, 27 Feb 2019 at 18:16, David Marteau <dmarteau at 3liz.com> wrote:
>
> Hi Nyall
>
> You may be interested in some work already done for running qgis processing algorithms at server side with no gui and direct calls to "createAlgorithms":
>
> https://github.com/3liz/py-qgis-wps
>
> Development of embedding the processing machinery has raised some interesting questions about using processing in stand alone programs.

Right -- use cases like this are actually one of the main motivations
behind the standalone executable!

The way I see it, benefits of using a standalone executable called via
subprocess (vs direct use of the PyQGIS API) for tools like
py-qgis-wps are:
- safer: less risk of the processing subprocess crashing and bringing
down the whole server process with it
- easier to use: no need to worry about the process of initializing
qgis and processing manually - this is all taken care of for you.
- works correctly with plugins, without the complexity of manually handling this
- easier to multithread without incurring Python GIL locks

Nyall


>
> David
>
> Le 27 févr. 2019 à 04:36, Nyall Dawson <nyall.dawson at gmail.com> a écrit :
>
> Hi all,
>
> Just a heads up for a newly filed QEP regarding a standalone tool for
> executing QGIS Processing algorithms outside of the desktop GUI
> application. Read the full details and comment here:
>
> https://github.com/qgis/QGIS-Enhancement-Proposals/issues/140
>
> Nyall
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>


More information about the QGIS-Developer mailing list