osm2pgrouting(1)
π NAME π
osm2pgrouting β bestie, it's literally the tool that imports OpenStreetMap data straight into a pgRouting database πΊοΈβ¨
πΈ SYNOPSIS πΈ
osm2pgrouting -f file [OPTIONS]
π¦ DESCRIPTION π¦
okay so osm2pgrouting is a command line tool, and its whole thing is making it so easy to pull OpenStreetMap data into a pgRouting database π
and the way it does it?? it builds the routing network topology for you, automatically, no manual labor, no tears ππ and then it creates tables for feature types and road classes. she just handles it. main character energy fr fr.
β¨ OPTIONS β¨
π Help π
--helpβ prints the help message for this version, so you know what you're doing π«Ά-v,--versionβ prints the version string, iconic little flex π
π General π
-f file,--file fileβ the name of the OSM file. REQUIRED, bestie, you cannot skip this one π¨-c file,--conf fileβ the name of the configuration XML file. (default:/usr/share/osm2pgrouting/mapconfig.xml) π--schema schemaβ the database schema where the tables go. leave it blank and it defaults to whatever default schema PostgreSQL'ssearch_pathis dictating π--prefix prefixβ a prefix that gets added at the beginning of the table names β¨--suffix suffixβ a suffix that gets added at the end of the table names β¨--addnodesβ imports theosm_nodestable π«Ά--cleanβ drops previously created tables. yes she will delete them. dramatic but purposeful π
π Database options π
-d name,--dbname nameβ the name of your database. REQUIRED π¨-U name,--username nameβ the name of the user who has write access to the database. (default:postgres) βοΈ-h host,--host hostβ the host of your PostgreSQL database. (default:localhost) π₯οΈ-p port,--port portβ the port of your database. (default:5432) π-W password,--password passwordβ the password for database access π€«π
quick vibe check:-f fileand-d nameare the two Required ones. everything else has a default or is optional. slay accordingly π
that's the whole page, bestie, you're officially qualified ππ this gem was documented on 11 June 2026 β go forth and route some roads π£οΈπβ¨
π¦ where this page comes from
- ubuntu stonking: osm2pgrouting 3.0.0-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms