I need to convert the "osm data" into "shape files" to work in our application for routing purpose. I have found my servers having shape files data available for download, and there are also converter available for converting osm data into shape files. My question is that for routing algorithms on shape files to work, it is important that a road should be divided into multiple parts/roads at point of intersection, if any road is intersecting it. but this important aspect is ignored in the converters or converted shape files I have seen so far. Can some one please explain that is there any converter available for converting osm data into shape files that are suitable for routing?

Thanks.

This question is marked "community wiki".

asked 31 Dec '10, 11:19

Asif%20Mushtaq's gravatar image

Asif Mushtaq
1113
accept rate: 0%

Hello, I am facing the same problem. Have you found a solution? Thanks.

(23 Oct '13, 07:28) hua zhang

maybe you can do a search or ask once more at http://gis.stackexchange.com about this specual question.

(23 Oct '13, 18:42) stephan75

There is no such converter but it would not be too difficult to enhance any of the existing converters to do this - you would have to find out which nodes are used by more than one road in a first pass, and then in a second pass split the ways accordingly when writing shape files.

However, those "routable shapefiles" are a work-around anyway because the shapefile format does not support topology. You would probably get better results if you managed to import OSM data directly into your application, rather than using shape files.

link

answered 31 Dec '10, 17:19

Frederik%20Ramm's gravatar image

Frederik Ramm
38.2k48372605
accept rate: 22%

Have you tried spatialite for this purpose? spatialite has a separate tool to import the osm data into it which then can be exported to shapefile. the document here describes the whole procedure of it.

cheers

link
This answer is marked "community wiki".

answered 03 Jan '11, 05:26

Hamad's gravatar image

Hamad
03
accept rate: 0%

edited 03 Jan '11, 05:31

-1

I think is better to save the map as .mp file then export it to shape file

link

answered 03 Jan, 10:56

tanask's gravatar image

tanask
25125
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33

Asked: 31 Dec '10, 11:19

Seen: 5,613 times

Last updated: 03 Jan, 10:56

powered by OSQA