osm2pgsql

OpenStreetMap data to PostgreSQL converter

Install

All systems
curl cmd.cat/osm2pgsql.sh
Debian Debian
apt-get install osm2pgsql
Ubuntu
apt-get install osm2pgsql
image/svg+xml Kali Linux
apt-get install osm2pgsql
Fedora
dnf install osm2pgsql
Windows (WSL2)
sudo apt-get update sudo apt-get install osm2pgsql
OS X
brew install osm2pgsql
Raspbian
apt-get install osm2pgsql

osm2pgsql

OpenStreetMap data to PostgreSQL converter

Convert OSM planet snapshot data to SQL suitable for loading into a PostgreSQL database with PostGIS geospatial extensions. This database may then be used to render maps with Mapnik or for other geospatial analysis.