osm2pgsql
« Back to VersTracker
Description:
OpenStreetMap data to PostgreSQL converter
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @osm2pgsql  |  formulae.brew.sh
Category: Databases
Tags: openstreetmap postgis postgresql gis geospatial
Install: brew install osm2pgsql
About:
Osm2pgsql is a command-line tool designed to import OpenStreetMap data into a PostgreSQL database with the PostGIS extension enabled. It processes OSM data formats like .pbf and .osm into database tables suitable for spatial queries and map rendering. This utility is essential for creating custom map tiles or performing geospatial analysis on OSM data.
Key Features:
  • High-performance streaming parser for large OSM datasets
  • Supports flexible schema customization via Lua scripts
  • Live update mode to apply incremental OSM changesets
  • Optimized for rendering with PostGIS spatial indexes
Use Cases:
  • Building custom map tile servers using the standard Mapnik/PostGIS stack
  • Performing geospatial analysis on OpenStreetMap data for urban planning or logistics
  • Hosting a local, queryable copy of OSM data for application development
Alternatives:
  • imposm3 – Focuses on general-purpose OSM data import with different schema mapping strategies
  • ogr2ogr – GDAL utility that can read OSM files but is less optimized for the full OSM data model
Version History
Detected Version Rev Change Commit
Sep 17, 2025 5:26pm 0 VERSION_BUMP d82f02de
Sep 15, 2025 10:11am 0 VERSION_BUMP 7be021b4
Nov 18, 2024 10:46am 0 VERSION_BUMP 7f71c906
Sep 19, 2024 3:47pm 0 VERSION_BUMP 3e376c67