# osm2pgsql

Canonical: https://gisforweb.com/tools/osm2pgsql/

Import OpenStreetMap data into a PostgreSQL/PostGIS database for map rendering and analysis.

osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL/PostGIS database. It's optimized for rendering maps but can also be used for analysis and routing applications.

## Details

- Type: cli

- Categories: data-processing, storage

- Open source: Yes

- Pricing model: open-source

- License: GPL-2.0

## Features

- Imports OSM data into PostgreSQL/PostGIS

- Configurable table layout via Lua scripts

- Reads OSM XML, PBF, and O5M formats

- Updates database from replication diffs

- Scales from small areas to the planet

- Geometry building and generalization support

## Project sources

- Website: https://osm2pgsql.org

- Repository: https://github.com/osm2pgsql-dev/osm2pgsql

Directory descriptions are summaries. Verify current capabilities and terms with the project sources.
