|
Revision 216, 0.9 KB
(checked in by anton, 2 years ago)
|
|
osm2pgrouting: expat added to README
|
| Line | |
|---|
| 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 | See in the documentation of the pgrouting website for more informations: |
|---|
| 13 | http://pgrouting.postlbs.org/ |
|---|
| 14 | |
|---|
| 15 | For compiling this tool, you will need boost, libpq and expat: |
|---|
| 16 | Then just type: make |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | Start the program like this: |
|---|
| 20 | |
|---|
| 21 | ./osm2pgrouting -file your-OSM-XML-File.osm -conf mapconfig.xml -dbname routing -user postgres -clean |
|---|
| 22 | |
|---|
| 23 | all available parameters are: |
|---|
| 24 | |
|---|
| 25 | required: |
|---|
| 26 | -file <file> -- name of your osm xml file |
|---|
| 27 | -dbname <dbname> -- name of your database |
|---|
| 28 | -user <user> -- name of the user, which have write access to the database |
|---|
| 29 | -conf <file> -- name of your configuration xml file |
|---|
| 30 | optional: |
|---|
| 31 | -host <host> -- host of your postgresql database (default: 127.0.0.1) |
|---|
| 32 | -port <port> -- port of your database (default: 5432) |
|---|
| 33 | -passwd <passwd> -- password for database access |
|---|
| 34 | -clean -- drop peviously created tables |
|---|