NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


This worked fine:

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

answered 15 May '14, 19:06

giohappy's gravatar image

giohappy
26113
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×65

question asked: 15 May '14, 18:15

question was seen: 4,030 times

last updated: 17 Jan '16, 19:38

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum