Reference

osm2pgrouting(1)

import OpenStreetMap data into a pgRouting database

NAME

osm2pgrouting - import OpenStreetMap data into a pgRouting database

SYNOPSIS

FCosm2pgroutingF[0] FC-fF[0] file [OPTIONS]

DESCRIPTION

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.

OPTIONS

Help:

FC--helpF[0]

Produce help message for this version

FC-vF[0], FC--versionF[0]

Print version string

General:

FC-fF[0] file, FC--fileF[0] file

Name of the OSM file (Required).

FC-cF[0] file, FC--confF[0] file

Name of the configuration XML file. (default: /usr/share/osm2pgrouting/mapconfig.xml)

FC--schemaF[0] schema

Database schema to put tables. blank: defaults to default schema dictated by PostgreSQL search_path.

FC--prefixF[0] prefix

Prefix added at the beginning of the table names.

FC--suffixF[0] suffix

Suffix added at the end of the table names.

FC--addnodesF[0]

Import the osm_nodes table.

FC--cleanF[0]

Drop previously created tables.

Database options:

FC-dF[0] name, FC--dbnameF[0] name

Name of your database (Required).

FC-UF[0] name, FC--usernameF[0] name

Name of the user, which have write access to the database. (default: postgres)

FC-hF[0] host, FC--hostF[0] host

Host of your PostgreSQL database. (default: localhost)

FC-pF[0] port, FC--portF[0] port

Port of your database. (default: 5432)

FC-WF[0] password, FC--passwordF[0] password

Password for database access.

History