Leaf: Coastline Dataset: Natural Earth — Coastline and Land/Ocean masks

Natural Earth provides the most widely used public-domain global coastline at three generalisation levels. It is appropriate for global-to-regional mapping and spatial analysis at scales where high-precision coastal surveys are not required.

Scale selection guide

ScaleShapefileUse case
1:10mne_10m_coastline.shpRegional analysis, national-level maps, coastal context overlays
1:50mne_50m_coastline.shpContinental overview, medium-scale thematic maps
1:110mne_110m_coastline.shpGlobal visualisation, small-scale reference maps

Python load

import geopandas as gpd
 
# Coastline as LineString (all scales follow same pattern)
coastline = gpd.read_file("ne_10m_coastline.shp")
 
# Land as Polygon (useful for land/sea masking)
land = gpd.read_file("ne_10m_land.shp")
 
# Ocean as Polygon
ocean = gpd.read_file("ne_10m_ocean.shp")
 
# Clip to a bounding box
bbox = (5.0, 54.0, 16.0, 58.0)  # roughly Denmark + neighbours
coastline_clip = coastline.cx[bbox[0]:bbox[2], bbox[1]:bbox[3]]

Key attributes (ne_10m_coastline)

FieldMeaning
featureclaFeature class (Coastline)
scalerankVisibility rank (lower = more prominent)
min_zoomSuggested minimum display zoom level

Available companion layers

LayerGeometryUse
ne_10m_landPolygonLand mask
ne_10m_oceanPolygonOcean mask
ne_10m_coastlineLineStringCoastline line
ne_10m_minor_islandsPolygonSmall islands not in main land polygon
ne_10m_reefsLineStringReef features near coast