logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

osm2pgrouting - import OpenStreetMap data into a pgRouting database

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.

Name

       osm2pgrouting - import OpenStreetMap data into a pgRouting database

Options

       Help:

       --help Produce help message for this version

       -v, --version
              Print version string

       General:

       -ffile, --filefile
              Name of the OSM file (Required).

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

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

       --prefixprefix
              Prefix added at the beginning of the table names.

       --suffixsuffix
              Suffix added at the end of the table names.

       --addnodes
              Import the osm_nodes table.

       --clean
              Drop previously created tables.

       Database options:

       -dname, --dbnamename
              Name of your database (Required).

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

       -hhost, --hosthost
              Host of your PostgreSQL database.  (default: localhost)

       -pport, --portport
              Port of your database.  (default: 5432)

       -Wpassword, --passwordpassword
              Password for database access.

                                                  06 March 2025                                 osm2pgrouting(1)

Synopsis

osm2pgrouting-ffile [OPTIONS]

See Also