| | 1 | Before you can use this tool for importing Openstreetmap data, |
|---|
| | 2 | you need to install |
|---|
| | 3 | |
|---|
| | 4 | 1. postgresl |
|---|
| | 5 | 2. postgis |
|---|
| | 6 | 3. pgrouting |
|---|
| | 7 | 4. boost |
|---|
| | 8 | 5. expat |
|---|
| | 9 | |
|---|
| | 10 | and to prepare a database. |
|---|
| | 11 | |
|---|
| | 12 | For compiling this tool, you will need boost, libpq and expat: |
|---|
| | 13 | Then just type: make |
|---|
| | 14 | |
|---|
| | 15 | Start the program like this: |
|---|
| | 16 | |
|---|
| | 17 | ./osm2pgrouting -file your-OSM-XML-File.osm -conf mapconfig.xml -dbname routing -user postgres -clean |
|---|
| | 18 | |
|---|
| | 19 | all available parameters are: |
|---|
| | 20 | |
|---|
| | 21 | required: |
|---|
| | 22 | -file <file> -- name of your osm xml file |
|---|
| | 23 | -dbname <dbname> -- name of your database |
|---|
| | 24 | -user <user> -- name of the user, which have write access to the database |
|---|
| | 25 | -conf <file> -- name of your configuration xml file |
|---|
| | 26 | optional: |
|---|
| | 27 | -host <host> -- host of your postgresql database (default: 127.0.0.1) |
|---|
| | 28 | -port <port> -- port of your database (default: 5432) |
|---|
| | 29 | -passwd <passwd> -- password for database access |
|---|
| | 30 | -clean -- drop peviously created tables |
|---|