A simple command line tool for reading OpenStreetMap .osm.pbf files into a SQLite database.
Usage:
pbf2sqlite DATABASE [OPTION ...]
Main options:
read FILE Reads FILE into the database
(.osm.pbf or .osm)
rtree Add R*Tree indexes
addr Add address tables
graph Add graph table
The command
pbf2sqlite test.db read country.osm.pbf
reads the OSM PBF file country.osm.pbf and creates in the database test.db the tables.
The tables created are described in the documentation.
OSM data can be obtained from a provider such as Geofabrik.
The readosm library is used for this program.
See also notes on compilation.
Download the latest version |
---|