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 am trying to extract the edges and nodes of a certain city from osm files and save them to a database. How can I accomplish this. I am not sure how much osm2po and osm2pgrouting tools are acceptable. I mean what is the standard procedure to get the graph. I mean when I use osm2po and tools like that they generate their own data structures. I mean they have this column called geometry of type multiline string and stuff. I am not sure if I should use this. Actually, I want to implement shortest path algorithm of my own.

I am not sure if osm is the only source to get such graph. Also, I want to plot the generated graph in matlab. How can I accomplish this?

share|improve this question

1 Answer 1

You can find some MATLAB scripts to import openstreetmap files here: http://www.mathworks.com/matlabcentral/fileexchange/35819-openstreetmap-functions these include functions for plotting the map and network, as well as a routing example.

share|improve this answer

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.