osm2pgrouting − import OpenStreetMap data into a pgRouting database
osm2pgrouting -f file [OPTIONS]
osm2pgrouting is a command line tool that makes it easy to import OpenStreetMap data into a pgRouting database. It builds the routing network topology automatically and creates tables for feature types and road classes.
Help:
−−help |
Produce help message for this version |
−v, −−version
Print version string
General:
−f file, −−file file
Name of the OSM file (Required).
−c file, −−conf file
Name of the configuration XML file. (default: /usr/share/osm2pgrouting/mapconfig.xml)
−−schema schema
Database schema to put tables. blank: defaults to default schema dictated by PostgreSQL search_path.
−−prefix prefix
Prefix added at the beginning of the table names.
−−suffix suffix
Suffix added at the end of the table names.
−−addnodes
Import the osm_nodes table.
−−clean
Drop previously created tables.
Database options:
−d name, −−dbname name
Name of your database (Required).
−U name, −−username name
Name of the user, which have write access to the database. (default: postgres)
−h host, −−host host
Host of your PostgreSQL database. (default: localhost)
−p port, −−port port
Port of your database. (default: 5432)
−W password, −−password password
Password for database access.