Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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

share|improve this answer
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.

share|improve this answer
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

share|improve this answer
Thank you, I will try this later. – Route Maker Feb 29 '12 at 11:21
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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