pgRouting / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
https://pgrouting.org
GNU General Public License v2.0
289 stars 111 forks source link

Cannot Open Error #178

Closed masgeomatik closed 7 years ago

masgeomatik commented 7 years ago

Hi. I try this code: file http://routingo.com/veriler/andorra.osm conf mapconfig.xml dbname postgres username postgres dbname, username and web adress is correct. But give an error. error

How can I fix it?

smellman commented 7 years ago

Why do you run file command? All errors are from file command, it is not osm2pgrouting command.

First, you need to download osm file.

wget http://routingo.com/veriler/andorra.osm

And you run osm2pgrouting command.

osm2pgrouting --f andorra.osm --conf mapconfig.xml --dbname postgres --username postgres

Please read (README.md)[https://github.com/pgRouting/osm2pgrouting/blob/master/Readme.md] file carefully, and you may need to learn about command line.

masgeomatik commented 7 years ago

errror3 No command error. (komut yok)

dkastl commented 7 years ago

@masgeomatik does it work for you now?

woodbri commented 7 years ago

-bash: osm2pgrouting: komut yok means that bash could not find the osm2pgrouting command in the path. This suggests that you have not installed osm2pgrouting on your system.

You need to install this first. What OS, distribution are you running. On Ubuntu, try running sudo apt-get install osm2pgrouting

dkastl commented 7 years ago

@masgeomatik , please do not post your questions on multiple locations without adding a reference.

Closing this as the issues is discussed here already: https://gis.stackexchange.com/questions/252659/cannot-open-error-pgrouting