|natural = coastline|
|The mean high water (springs) line between the sea and land (with the water on the right side of the way)|
|Rendering in OSM Carto|
|Used on these elements|
|Status: de facto|
|Tools for this tag|
It is not used for lakes and rivers.
Where is the coastline?
By common agreement the coastline is tagged at mean high-water springs line. Basically that is the highest line the water reaches in normal circumstances. (See the images to the right for some ideas how to decide where that line is.)
Mean low-water springs is the position of the lowest tide. There is currently no agreed way of tagging this line in OSM. The area between mean low water springs and OSM coastline may be tagged according the type of soil: for examples sand (see natural=sand or natural=shoal), rocks (see natural=bare_rock or natural=rock), muddy (see wetland=tidalflat or natural=mud).
How to enter the data
Tagging the coastline is a bit different than with all other features in OSM and you should be careful to get this right. Make sure you use natural=coastline on ways, not nodes or relations.
For smaller islands a single closed way can be drawn around the perimeter of an island, looping back on itself. For larger landmasses the coastline is defined as a series of linear ways connected end to end. These ways must create a continuous interlinked coastline, the end node of one way must be the start node of the next way. A break in the coastline or other error can cause serious difficulties when using this data. If you are not confident about editing, it is best to not make major changes beyond adjusting nodes to align better with aerial imagery.
The direction the ways are drawn is very important! They must be drawn so that the land is on the left side and water on the right side of the way (when viewing in the direction of the way arrows). If you regard this as tracing around an area of land, e.g., an island, then the coastline way should be running counterclockwise.
Do not tag nodes or relations with natural=coastline.
Do not add other values of natural=* using semi-colon value separators, as it is not really needed. (it is also not recognized by most data consumers and renderers, but it is not sufficient reason to consider it as a bad idea by itself). An example would be natural=coastline;bare_rock for islets, which should be represented as natural=coastline as a member of a multipolygon relation tagged with natural=bare_rock.
To be more exact tagging would be following
- ways tagged natural=coastline example
- relation with natural=bare_rock type=multipolygon - and maybe other tags such as name=* + place=islet example
Coastlines often coincide with other features, such as river mouths, landuse, and boundaries. You can split up the coastline in as many pieces as you need to, just make sure there is always a continuous line.
What about lakes?
The only water body without level connection to the oceans that is using this tag is the. You should not use this tag for any other inland water areas.
River ways tagged as waterway=river or waterway=stream end at the coastline on a common node for the river way and the coastline way. Larger rivers tagged with natural=water + water=river have a way across their mouth that is tagged natural=coastline. In those cases the river line can also extend on the other side of the coastline, for example if there is a dug deep-water channel or a marked shipping lane.
There are discussions about where the transition between the sea to a wide river (water=river) should occur; there is a view that this should ideally be at the top of the tidal section on the river, but it is also accepted that the junction may be closer to the mouth of the river with the tidal section of the river tagged with tidal=yes. The important thing is to ensure that the coastline and riverbank share at least two adjacent nodes to create a seamless junction between the river and the sea. There is a proposal outlining upper and lower limits of the placement of this junction and there is another proposal describing tagging of tidal rivers.
Bays and other large tidal salt-water areas are part of the sea if they are connected to the sea and should always be tagged as such.
The shoreline data for most parts of the world was originally generated from a low-resolution data using the Prototype Global Shoreline (PGS) import and other imports. Inaccurate shorelines can be seen mostly in a sawtooth shape, whereas in reality the coastlines are mostly gentle curves. In many parts of the world the coastline ways have subsequently been improved either with tracing from aerial imagery, or replaced by better vector data.
Be careful when tracing coastlines from aerial images. Those images are often not quite in the right position, so your coastline might look like it fits perfectly to the images, but in reality it is a few hundred meters off. Make sure that the data fits to GPS data.
(Possible) data sources:
- Ordnance Survey Opendata (Which includes official high water and low water data for the UK).
Errors and consistency checking
It is very important that the coastline is formed and tagged correctly. A single error in the coastline somewhere in Africa might mean all of Asia-Africa-Europe landmass can't be drawn correctly! Always make sure the coastline has the right orientation (land to the left, water to the right). Do not cross a coastline over itself - this has no meaning and may cause renderers to behave badly. Don't use the same point twice (pinch point) other than the start/end point (if appropriate). If you want to make an island, start a new way.
Use the daily updated OSM Inspector coastline view to check for errors in the coastline.
Other coastal features
Along the coast it is often useful to add natural=beach, natural=bare_rock and natural=cliff for beaches, exposed bedrock and cliffs; also natural=wetland for various forms of wetland, including wetland=tidalflat, wetland=mangrove and wetland=saltmarsh. man_made=groyne can be used for sea defences.
For areas between coastline and the low tide's line, see above Where is the coastline.
Using OSM coastline data
Please see Coastline for information how to use OSM coastline data in your own maps.
See also that page if coastline data is not updating in your area for a long time in a default map style.