TransWikia.com

Quickosm and the modeler

Geographic Information Systems Asked by Alessandro Bollini on January 28, 2021

I need to have quickosm run a query via the modeler.

I have found examples on the net, but I cannot modify them for my own use.

I need to download some vectors and create 3 layers.

How do I do that?

First of all I have to make sure that it always retrieves the data from canvas without indicating the area and then I have to create 3 levels, points, lines and areas.

I am attaching the query code so that I better understand what I need.

qgis 3.16
quickosm 1.14.3

<osm-script output="xml" timeout="25">
    <union>
        <query type="way">
            <has-kv k="railway" v="tram"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="railway" v="rail"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="living_street"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="pedestrian"/>
            <bbox-query {{bbox}}/>
        </query>  
        <query type="way">
            <has-kv k="highway" v="primary"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="residential"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="secondary"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="service"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="tertiary"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="tertiary_link"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="highway" v="unclassified"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="way">
            <has-kv k="building"/>
            <bbox-query {{bbox}}/>
        </query>
        <query type="relation">
            <has-kv k="building"/>
            <bbox-query {{bbox}}/>
        </query>
    </union>
    <union>
        <item/>
        <recurse type="down"/>
    </union>
    <print mode="body"/>
</osm-script>
```![enter image description here](https://i.stack.imgur.com/vllsE.jpg)
[![error][1]][1]


  [1]: https://i.stack.imgur.com/gegtP.png

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP