Imposm
From OpenStreetMap Wiki
Imposm (imposm.org) is an importer for OpenStreetMap data. It reads XML and PBF files and can import the data into PostgreSQL/PostGIS databases. It is designed to create databases that are optimized for rendering/WMS services.
It is developed in Python and supported by Omniscale, runs on Linux or Mac OS X and is released as open source under the Apache Software License 2.0.
It uses Imposm parser for the parsing of the XML and PBF files, which is also available as an independent sub-package.
- Homepage: http://imposm.org
- Package: http://pypi.python.org/pypi/imposm
- Documentation: http://imposm.org/docs/imposm/latest/
- Source code: https://bitbucket.org/olt/imposm/src
Alternatives
- Osmosis - can also do import of osm file to postgres DB with postgis extension
- Osm2postgresql - based on Osmosis. Does advanced geometry processing and lossless classification.