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.
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.
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
With the default
Value
setting and the string'primary';'secondary';'tertiary'
or
with setting
Pre-calculated Value
and the stringeval ('"primary" or "secondary" or "tertiary"')