forked from pgRouting/osm2pgrouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
36 lines (26 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Before you can use this tool for importing Openstreetmap data,
you need to install
1. postgresl
2. postgis
3. pgrouting
4. boost
5. expat
and to prepare a database.
See in the documentation of the pgrouting website for more informations:
http://pgrouting.postlbs.org/
For compiling this tool, you will need boost, libpq and expat:
Then just type: make
Start the program like this:
./osm2pgrouting -file your-OSM-XML-File.osm -conf mapconfig.xml -dbname routing -user postgres -clean
all available parameters 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)
-passwd <passwd> -- password for database access
-clean -- drop peviously created tables
-skipnodes -- do not load nodes into the node table (reduces runtime)