0

I'm working on a standalone application that imports OSM data into its mapCanvas. It works in QGIS but not in the standalone script.

I get algorithm not found when I run the help function.

processing.algorithmHelp("quickosm:buildqueryextent")
Algorithm "quickosm:buildqueryextent" not found.

Also I've tried importing QuickOSM's processing provider:

QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
from QuickOSM.quick_osm_processing.provider import Provider
QgsApplication.processingRegistry().addProvider(Provider())

and it returns 'True' but when I try to print out the list of processing algorithms I get this:

.
.
qgis:variabledistancebuffer -> Variable distance buffer
qgis:vectorlayerhistogram -> Vector layer histogram
qgis:vectorlayerscatterplot -> Vector layer scatterplot
qgis:voronoipolygons -> Voronoi polygons
: -> 
: -> 
: -> 
: -> 
: -> 
: -> 

I feel like the last 6 are the QuickOSM processing algorithms but I think I'm missing a step. Please help. The QuickOSM folder is in the root directory of my standalone application.

1
  • 1
    It looks weird indeed. QuickOSM is providing 6 algorithms in the modeler, which would match the last 6 rows. Can you edit and add the standalone script ? So we can try ? Maybe try "processing.Processing.initialize()" after adding both provider ?
    – etrimaille
    Jun 30, 2021 at 8:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.