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

Sea/Ocean Polygons help, please!

0

Can anyone please advise the code I need to receive polys back for the sea/ocean in a bounding rect?

Naively, I expected the below to return all water elements, but I understand seas and oceans work differently:

[out:json]; (nwr["natural"~"water"] (53.264064,-4.657101,53.319909,-4.577605); ); out meta; >; out skel qt;

Naturally, I've tried swapping out natural for place and water for sea - but still no luck.

Appreciate any help in advance!

asked 12 Jun '20, 10:23

jusdespommes's gravatar image

jusdespommes
11335
accept rate: 0%

edited 12 Jun '20, 10:23


One Answer:

0

You can only retrieve coastline (natural=coastline) from Overpass, not ready-made water polygons. OpenStreetMap does not store the sea as polygons but as coastline segments. See https://wiki.openstreetmap.org/wiki/Tag:natural%3Dcoastline for details.

answered 12 Jun '20, 11:10

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .