I'm trying to query the Great Lakes in overpass using the id (http://www.openstreetmap.org/relation/1124369)...is this plausible?

Here is what I have so far.

[out:json][timeout:2500];

(   relation["name"="Great Lakes"][ref=1124369];   way(r);   node(w); );

out skel qt;

asked 25 Apr '17, 00:54

goldfishinriver's gravatar image

goldfishinriver
16336
accept rate: 0%


To query by OSM id, do something like rel(1124369);

Once you have that object you need to use the recurse down relations operator:

[out:json][timeout:25];
rel(1124369);
(._;>>;);
out;

It's about 90 megabytes of data.

permanent link

answered 25 Apr '17, 01:51

maxerickson's gravatar image

maxerickson
10.8k1073151
accept rate: 31%

Thanks! Worked great!

(26 Apr '17, 22:03) goldfishinriver
Your answer
toggle preview

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:

×189
×6
×2

question asked: 25 Apr '17, 00:54

question was seen: 2,382 times

last updated: 27 Apr '17, 04:49

powered by OSQA