Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

elscript/osm2pgrouting

Open more actions menu
 
 

Repository files navigation

osm2pgrouting

Requirements

Before you can use this tool for importing Openstreetmap data you need to install:

  1. postgresql
  2. postgis
  3. pgrouting
  4. boost
  5. expat
  6. cmake

and to prepare a database.

Documentation

See in the documentation of the pgrouting website for more informations: http://pgrouting.org

Installation

For compiling this tool, you will need boost, libpq, expat and cmake: Then just type the following in the root directory:

cmake -H. -Bbuild
cd build/
make
make install

How to use

Start the program like this:

osm2pgrouting -file your-OSM-XML-File.osm -conf mapconfig.xml -dbname routing -user postgres -clean

A complete list of arguments are:

required: 
-file <file>  			-- name of your osm xml file
-dbname <dbname> 		-- name of your database
-user <user> 			-- name of the user, which have write access to the database
-conf <file> 			-- name of your configuration xml file

optional:
-host <host>  			-- host of your postgresql database (default: 127.0.0.1)
-port <port> 			-- port of your database (default: 5432)
-prefixtables <prefix> 	-- add at the beginning of table names
-passwd <passwd> 		-- password for database access
-clean 					-- drop previously created tables
-skipnodes				-- do not load nodes into the node table (reduces runtime) 

About

Import tool for OpenStreetMap data to pgRouting database

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.