[GIS] How to get the coastline from OSM

openstreetmappostgistilemill

I've successfully imported all data for Sweden to my PostGIS database. Right now I'm designing my map in Tilemill with OSM Bright as base.

But I've got a major problem: where is the coastline? Right now all the roads and buildings are on the water. I've looked through all three landusages tables, and the only relevant geometry types are land and island, but they aren't what I expected.

I'm a GIS rookie, so any help is appreciated. 🙂

Best Answer

On https://osmdata.openstreetmap.de/, you can download pre-processed land polygons, water polygons and coastlines. They are derived from the OSM data and updated daily.

Land or water polygons are especially interesting in your case, as you won't have to manually close the coastline.