NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

answered 12 Jun '20, 11:10

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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:

×17
×8

question asked: 12 Jun '20, 10:23

question was seen: 2,609 times

last updated: 12 Jun '20, 11:10

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum