QGIS Graphical Modeler – How to Download Multiple OSM Data Key and Value Pairs

openstreetmapqgisqgis-modelerquickosm

I want to download OSM data from a query in an extent via the Graphical Modeler in QGIS.
Thereby I want to download multiple keys and values at once, but it somehow only takes the first one or none.

Let's take the example of primary, secondary and tertiary streets.

enter image description here

The modeler states that multiple keys can be asked by adding the seperator ',' in between each key and value. I tried several versions with spaces an without, but it only downloads the first key and value pair or none.

Outside the modeler I can add multiple keys and values with Or and it works within QuickOSM.
enter image description here

Any idea how I can replicate that inside the model builder without having three individual downloads? Thanks!

Best Answer

Use semicolon ; to delimit the different values, which are enclose in single quotes '. Don't repeat the key if it is the same for all values.

Then try using either

  1. With the default Value setting and the string 'primary';'secondary';'tertiary'

    or

  2. with setting Pre-calculated Value and the string eval ('"primary" or "secondary" or "tertiary"')

enter image description here

Related Question