0

Using PostgreSQL 9.6 and osm2pgrouting 2.2 I am not able to let osm2pgrouting work. Starting from the command line, I get always some mistakes. I think I tried everything, and am getting a bit frustrated. Can anybody help?

Path of osm2pgrouting: C:\Program Files\Postgresql\9.6\bin\ Path of the OSM file: C:\nederland_osm Name of the OSM file: netherlands-latest.osm

What would be he right command? For instance I have tried:

osm2pgrouting -f C:\nederland_osm\netherlands-latest.osm -d pgr --port=5432 --schema=ospr -c C:\Program Files\PostgreSQL\9.6\bin\mapconfig_for_cars.xml

  • First of all use "C:\Program Files\PostgreSQL\9.6\bin\mapconfig_for_cars.xml" – HeikkiVesanto Jul 18 '17 at 13:55
  • What error do you get? – HeikkiVesanto Jul 18 '17 at 13:55
  • Well, found out what the problem was; It didn't hande the space between Program Files ... So put it between double quotes: osm2pgrouting -f "C:\nederland_osm\netherlands-latest.osm" -d Maas -c "C:\Program Files\PostgreSQL\9.6\bin\mapconfig_for_cars.xml" That is part of the solution, the script runs now, but I guess memory is an issue now... Will solve that also...... – Maas Jul 18 '17 at 17:42
  • Do you run this on Windows with Ubuntu bash? – dkastl Jul 22 '17 at 13:56
1

On Windows; Navigate to your bin file under PostgreSQL directory from CMD and write;

osm2pgrouting.exe --f C:\Users\user\Desktop\qgis\export.osm --conf C:\Users\user\Desktop\qgis\mapconfig.xml --dbname yourdb --username postgres --password 111

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.