[QGIS-Developer] QgsProcessingAlgorithm: no output layer when cancelled

Nils Nolde nilsnolde at gmail.com
Mon Jul 22 00:41:15 PDT 2019


Hola,

running into 2 notorious problems with the ORS Tools plugin:

1. QgsProcessingAlgorithm, where it doesn't return the features which 
were processed until the user presses Cancel. More elaborate on SE:

https://gis.stackexchange.com/questions/328913/pyqgis-qgsprocessingalgorithm-no-output-layer-when-cancelled

2. Another, more subtle, behavior when someone uses the batch processing 
algorithms for ORS Tools plugin like so:

- save result as .shp or .gpkg instead of memory layer

- user exceeds our minutely query limit (usually 40 queries/minute), 
i.e. errors are printed, but internally NetworkAccessManager is just 
sleeping until the minute is over and the limit is lifted

- when all is done, the resulting layer is empty. However, when using 
memory layers instead, the results are available.

Thanks for any insight, running out of coffee soon..

Cheers
Nils



More information about the QGIS-Developer mailing list