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

Can’t see Serpentine Lake in London with my query

0

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 '20, 17:02

jusdespommes's gravatar image

jusdespommes
11335
accept rate: 0%

edited 26 Feb '20, 17:02


One Answer:

2

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.

answered 26 Feb '20, 20:31

H_mlet's gravatar image

H_mlet
5.4k1781
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 '20, 19:33) jusdespommes

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

(29 Feb '20, 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 '20, 10:31) Kovoschiz