I have some routable data for testing my pgRouting functions, and everything is fine. Now I have to download some more countries from OSM. I downloaded Germany shape files, but OSM maps are not routable. OK, next step, I found osm2pgrouting Import Tool but it works only on Linux, I need Windows version. Is there any possibility to make OSM map routable on Windows?


You may want to take a look at the OSM chapter of the pgRouting workshop: http://workshop.pgrouting.org/chapters/osm2pgrouting.html To import your data on Windows you could try osm2po (http://osm2po.de). It's written in Java, so it may work.

  • I did it with osm2po! It was not so easy, I had some errors, etc … but I did it. Thank you Daniel! – Route Maker Feb 29 '12 at 11:20
  • I did it with Greece, but for Germany I got Out of memory error. – Route Maker Feb 29 '12 at 14:41

I have used OSM2PostGIS for Windows without issue

"OSM2PostGIS is a new tool for importing data from the OpenStreetMap XML (.osm) files to a PostgreSQL database with the correct geometry projection, spatial reference (PostGIS), and directed topology for routing (pgRouting). Routing cost calculation is aware of one-way roads, speed limits, etc."


Underdark has made a very good beginners guide.


  • 1
    Do you know how active osm2PostGIS community is? Their Sourceforge page looks deserted. – underdark Feb 28 '12 at 16:11
  • I have OSM2PostGIS, but I thought it is for Linux. I don’t know how to use it on Windows. – Route Maker Feb 29 '12 at 11:31
  • Yes, Underdark has very useful posts. – Route Maker Feb 29 '12 at 11:32

You can also use our OSM converter. It turns the OSM files into SHP, which you can then import into PostGIS (or even better use it with our routing products). In any case the converter is aimed at making OSM routable and highlight errors in the data.

Find it at http://www.routeware.dk

  • I tried it, it looks nice but I get the error “Out of memory”. I have 4 GB RAM. – Route Maker Feb 29 '12 at 12:17
  • What should I do to resolve this? I like this converter but for now it is not useful for me :( – Route Maker Feb 29 '12 at 12:27
  • Is it Germany you have tested with? – Uffe Kousgaard Feb 29 '12 at 14:11
  • I tested with Greece because it is smaller... – Route Maker Feb 29 '12 at 14:34
  • Right now I tried osm2po with Germany and I got Out of memory error. – Route Maker Feb 29 '12 at 14:43

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.