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

Hi folks!

Is there a way to get all coastlines (consistent (!) polygons that define landmasses) out of OSM data? Like GSHHS, but the detailed data that OSM offers. Do you know of a data provider that offers these?

I checked a few shapefile exports available on the net, but they seem to be polylines that sometimes aren't closed.

Thanks in advance, Bernd

asked 12 Jun '12, 01:34

Bernd%20Podhradsky's gravatar image

Bernd Podhra...
11112
accept rate: 0%


First of all you need to understand that OSM is a volunteer operated project and that at any given time there are very likely to be errors - e.g. holes in the coastline, missing islands, even "flooded" parts of continents - in our dataset. This is something you have to cope with when using OSM data.

The openstreetmapdata.com web site is probably the nearest you will get to a bug-free landmass polygon dataset. You have a choice of large landmass polygons, or smaller overlapping ones. The software used to produce these data sets tries to fix smaller problems (small gaps etc.) automatically.

permanent link

answered 12 Jun '12, 07:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Of course, most of the OSM mapping users, pretending on a vector (transmission) based rendering are doing this. The land/sea layer is, as a rule, the basic (or the first) layer to render. But there are various models to convert the source coastline poly-lines to a land/see area (call them multi-polygons if you like) presentation/coverage (or to a defragmented “landmasses” as you call them). We/I perform this conversion frequently on the Wednesday/Thursday OSM dump including procedures like: LAtLon to Mercator; eliminate replicated poly-lines, vectors, nodes; poly-lines to polygons; error detection and reparation; polygons to (simple) areas and the like.

An example for Europe (extended, because of the Spanish islands) “landmasses” from some weeks ago you may download (and examine) from here:

https://docs.google.com/folder/d/0B6qGm3k2qWHqZ2N3RkdUbnQwem8/edit

This land geometry is the input to a scale/zoom levels’ generation to provide data reduction for a continuous scaling. An example of these is also available as land_Lev7 from the same place. This level become active from around 1:50 000 000 scale and it contains 1 464 nodes compared to 6 179 103 nodes in the source. If you overlap the two geometries in the mentioned scale (eventually smaller) you will not see any differences except the better contrast and readability for the pre-scaled version.

Finally, if you zoom in to around 1:10 000 on the land geometry around (137 862;6 782 060) position you will see a typical logical error (compared to formal errors). There are many tiny channels and river/fiord systems tagged as coastline. These should logically be in other area object classes.

permanent link

answered 14 Jun '12, 10:51

sanser's gravatar image

sanser
695383955
accept rate: 5%

Have a look at OSMCoastline ... it has a link where you can download coastline data as shapefiles.

permanent link

answered 16 Jun '12, 21:47

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

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:

×67

question asked: 12 Jun '12, 01:34

question was seen: 6,786 times

last updated: 16 Jun '12, 21:47

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