Hi,

I'm running the query:

[out:json];

(way["natural"~"water"] (around:5100.0, 51.508341, -0.125499); ); out meta;
>; out skel qt;

To get all the water in Central London, or thereabouts; however, I'm not seeing any Serpentine Lake and I assume it's something to do with it being a multi-polygon.

Can anyone please assist?

TIA,

Alex

asked 26 Feb, 17:02

jusdespommes's gravatar image

jusdespommes
1125
accept rate: 0%

edited 26 Feb, 17:02


Hi.

You just have to look also for relations.

Like this for example :

[out:json];
nwr["natural"~"water"] (around:5100.0, 51.508341, -0.125499); 
out meta;
>; out skel qt;

It much slower, but should be complete.

Regards.

permanent link

answered 26 Feb, 20:31

H_mlet's gravatar image

H_mlet
1.7k732
accept rate: 13%

Ahh, this is so good.

What's the 'nwr' doing in contrast to my original query?

Thank you so much!

(29 Feb, 19:33) jusdespommes

nwr combines the node way and rel keywords. So it also fetch the relations matching the keyword.

(29 Feb, 19:37) H_mlet

You can use the clause relation["type"="multipolygon"]["natural"="water"]* to query multipolygons specifically. (I will let someone else supplement on its performance). Don't forget nodes, as some water features may only be mapped in that format.

(01 Mar, 10:31) Kovoschiz
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:

×118
×73
×38
×6

question asked: 26 Feb, 17:02

question was seen: 297 times

last updated: 02 Mar, 19:16

powered by OSQA