Overpass Turbo – Querying for All Ocean Entities in OpenStreetMap

openstreetmapoverpass-apioverpass-turbo

I'm looking for an overpass turbo query that gives me all (salt) water entities.
Currently, this is my query (using the overpass web interface):


[out:json][timeout:25];
(
  node["place"="sea"]({{bbox}});
  way["place"="sea"]({{bbox}});
  relation["place"="sea"]({{bbox}});
 
  node["natural"="bay"]({{bbox}});
  way["natural"="bay"]({{bbox}});
  relation["natural"="bay"]({{bbox}});

  node["water"]({{bbox}});
  way["water"]({{bbox}});
  relation["water"]({{bbox}});
  
  node["natural"="ocean"]({{bbox}});
  way["natural"="ocean"]({{bbox}});
  relation["natural"="ocean"]({{bbox}});
);

out body;
>;
out skel qt;

Basically, this works fine. But for certain sea elements, I do not get any results.
Is this because some are just not mapped and sea is considered as a base layer?

Take this point for example: https://www.openstreetmap.org/#map=19/36.00849/-5.44347

Best Answer

As @winnewoerp stated: "the oceans/larger seas do not exist as relations in OSM but are rendered based on natural=coastline rings", you have to make use of the coastline

nwr["natural"="coastline"]({{bbox}});

or use the prepared land or water polygon data sets here: https://osmdata.openstreetmap.de/data/. These are split into 1° Lat/Lon tiles, which comes very handy.