Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 2 down vote accepted

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.

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
add comment

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

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
show 4 more comments

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."

http://www.pgrouting.org/docs/tools/osm2PostGIS.html

Underdark has made a very good beginners guide.

http://underdark.wordpress.com/2011/02/07/a-beginners-guide-to-pgrouting/

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

Your Answer

 
discard

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.