This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Find all rivers (ways and relations) intersecting a given BBOX?

0

I need to get all the way (waterway=river) and relation (type=waterway) intersecting an area. The "is in" query works only for objects excatly inside an area, right?

I've tried the following QL query, but it doesn't seem right:

(node
    (43.7634,11.289,43.7908,11.2153);
    way(bn)['waterway'='river']
);
out body;

I've also tried:

(node
    (43.7634,11.289,43.7908,11.2153);
    way(bn)['waterway'='river']->.a
);
(way.a['waterway'='river']->.b);
.b out;

Probably I don't understand the query syntax correctly...

Giovanni

asked 15 May '14, 18:15

giohappy's gravatar image

giohappy
26113
accept rate: 0%

edited 17 Jan '16, 19:38

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

1

This worked fine:

(node
    (43.7634,11.2153,43.7908,11.289);
    way(bn)->.a
);
(way.a['waterway'='river'];>);
out;

answered 15 May '14, 19:06

giohappy's gravatar image

giohappy
26113
accept rate: 0%