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

How can I export this single waterway by ID number - Overpass API?

0

If I go to link text I see exactly the data I need:

Way: Forsythe Creek (30257498)
name    Forsythe Creek
waterway    river
Nodes
324480596 (part of ways Walker Creek (29440670) and Forsythe Creek (29440023))
324480597
324480598 
...

But if I export that page I also get the Walker Creek (29440670) and Forsythe Creek (29440023) waterways, plus a lot of roads. If I cut the map extent down enough I can get just those two "stream" waterways, but somehow that doesn't seem to work for 30257498 (which I believe becomes a "river") - I always get roads along with it.

I tried the Overpass web search, and the QuickOSM plugin in QGIS, and they can't find anything for 30257498. Or for the two upstream numbers. They don't give any errors, they just say "nothing found". I tried various ways to use the >> operator, but it didn't help.

QuickOSM is my easiest route. Is there a way to write an Overpass API query that will return just 30257498?

asked 13 Jun '18, 01:16

LorenAmelang's gravatar image

LorenAmelang
0112
accept rate: 0%


One Answer:

3

You can specify objects directly by id:

way(30257498);
out geom;

answered 13 Jun '18, 01:25

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Thank you so much! That works perfectly at Overpass, and I have the line I need. Can't figure out how to enter it as a QuickOSM query, but I'm much more excited to get on with the next step in the real project.

(13 Jun '18, 06:02) LorenAmelang

Source code available on GitHub .