Automic VaultAutomic Vault

brew

Install osmcoastline with Homebrew, apt

Extracts coastline data from OpenStreetMap planet file. Version 2.5.0 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install osmcoastline

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install osmcoastline

Debian stable package indexes · osmcoastline · source: deb.debian.org

overview

Package summary

Extracts coastline data from OpenStreetMap planet file

Commands and aliases

  • osmcoastline
  • osmcoastline_filter
  • osmcoastline_readmeta
  • osmcoastline_segments
  • osmcoastline_ways

history

Project history and usage

osmcoastline extracts OpenStreetMap coastline ways from planet-scale input and assembles them into land and water polygons for renderers and data users. It handles one of OSM's oddest global data problems: editable coastline segments must become valid, usable polygons.

Project history

Jochen Topf announced the work on March 7, 2012, while explaining the long-standing problem of turning `natural=coastline` ways into proper polygons. The same day, the osmcode/osmcoastline GitHub repository was created.

The blog post frames osmcoastline as a rewrite of an older coastcheck-based workflow that had become slow and difficult to maintain. The new implementation used Osmium to scan OSM files, assemble coastline rings, produce error information, and leave room for output options such as land polygons, water polygons, clipping, and splitting.

Adoption history

OpenStreetMapData's coastline-processing page says OSMCoastline was developed specifically to assemble coastline data, apply fixes where needed, and create the published coastline datasets on that site. It also feeds detected coastline errors onward to Geofabrik's OSM Inspector so mappers can correct source data.

How it is used

The man page describes `osmcoastline` as reading an input file, usually a planet file or filtered output, and writing coastline polygons to a Spatialite database. Options control overlap, gap-closing distance, warning behavior, output formats, and projection-specific details.

The repository also ships helper commands such as `osmcoastline_filter`; the README says the filter can reduce a planet file to the nodes and ways needed for coastline assembly, producing a file less than one percent of the original planet size.

Why package nerds care

osmcoastline is a compact example of domain-specific packaging: it depends on OSM parsing, geometry libraries, Spatialite, GDAL, GEOS, zlib, and optional PBF compression details, but exposes a focused CLI for one global map-production job.

Timeline

  • 2012-03-07: Jochen Topf publishes the OSM Coastlines blog post and releases the osmcoastline code.
  • The project grows around libosmium, protozero, GDAL, GEOS, SQLite/Spatialite, and PBF support.
  • OpenStreetMapData uses OSMCoastline for published coastline processing and error reporting.

Related projects

  • libosmium provides OSM file handling; OpenStreetMapData publishes derived coastline datasets; Geofabrik OSM Inspector surfaces coastline errors; renderers consume the assembled land and water polygons.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for osmcoastline. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 4 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
osmcoastlinecliglobal executable
osmcoastline_filtercliglobal executable
osmcoastline_readmetacliglobal executable
osmcoastline_segmentscliglobal executable
osmcoastline_wayscliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.5.0
manager updated2026-06-25
local dataok
upstreamcurrent
latest detectedv2.5.0

https://github.com/osmcode/osmcoastline

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:osmcoastline
Version2.5.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/osmcoastline
Homepagehttps://osmcode.org/osmcoastline/
Repositoryhttps://github.com/osmcode/osmcoastline
Upstream docshttps://docs.osmcode.org/osmcoastline/latest/osmcoastline.html
LicenseGPL-3.0-or-later
Source archivehttps://github.com/osmcode/osmcoastline/archive/refs/tags/v2.5.0.tar.gz
Last updated2026-06-25T13:38:00+02:00
Pulseupdated
Dependenciesgdal, geos, libspatialite, lz4
Build dependenciescmake, libosmium, protozero
Uses from macOSbzip2, expat, sqlite
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameosmcoastline
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

osmcoastline 2.4.1-1

Extract coastline data from OpenStreetMap planet file

https://osmcode.org/osmcoastline/

sudo apt install osmcoastline
  • Section: utils
  • Architecture: amd64
  • 9 dependencies
  • normalized package name match
  • Matched by: Osmcoastline
Debian stable package indexes · deb.debian.org · Debian stable package indexes: osmcoastline from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

osmcoastline 2.4.0-2build4

Extract coastline data from OpenStreetMap planet file

https://osmcode.org/osmcoastline/

sudo apt install osmcoastline
  • Section: universe/utils
  • Architecture: amd64
  • 9 dependencies
  • normalized package name match
  • Matched by: Osmcoastline
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: osmcoastline from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment