[OSRM-talk] map.osrm does not reflect wiki file format

Stephen Woodbridge woodbri at swoodbridge.com
Tue Nov 12 20:02:15 UTC 2013


Hi all,

I'm trying to extract pgrouting data from a postgresql database and 
write map.osrm file that can be read by osrm-prepare.

I have been following this:
https://github.com/DennisOSRM/Project-OSRM/wiki/OSRM-normalized-file-format

But when I try to prepare my file I get the following:

$ osrm-prepare st.osrm
[info] Input file: st.osrm
[info] Restrictions file: st.osrm.restrictions
[info] Profile: profile.lua
[info] Threads: 8
[warn] .osrm was prepared with different build.Reprocess to get rid of 
this warning.
[info] Importing n = 12 nodes
[info]  and 0 edges
[info] Graph loaded ok and has 0 edges
[info] 0 restrictions, 12 bollard nodes, 0 traffic lights
The input data is broken. It is impossible to do any turns in this graph

So I extracted a small area from openstreetmap into a map.osm.xml file, 
ran osrm-extract map.osm.xml and did a hex dump of the map.osrmxml file 
that was created and got the following (truncated):

> 00000000  4f 53 52 4d 61 32 62 39  34 34 30 39 31 33 31 33  |OSRMa2b944091313|
> 00000010  38 66 36 66 37 39 34 63  36 31 37 35 31 30 62 38  |8f6f794c617510b8|
> 00000020  33 35 39 63 00 65 33 35  35 37 35 38 32 33 31 33  |359c.e3557582313|
> 00000030  64 32 30 65 36 39 30 36  63 30 39 63 62 66 36 39  |d20e6906c09cbf69|
> 00000040  32 38 33 65 36 00 33 34  36 66 34 39 39 63 36 61  |283e6.346f499c6a|
> 00000050  61 30 34 65 36 31 34 30  38 36 34 35 30 61 62 64  |a04e614086450abd|
> 00000060  30 61 38 61 33 61 00 35  33 66 37 39 30 36 30 62  |0a8a3a.53f79060b|
> 00000070  30 30 65 66 63 32 35 33  34 37 35 66 36 36 33 66  |00efc253475f663f|
> 00000080  31 61 39 31 39 65 64 00  31 61 30 38 34 36 63 39  |1a919ed.1a0846c9|
> 00000090  30 64 64 31 39 66 64 34  32 31 31 62 33 64 65 31  |0dd19fd4211b3de1|
> 000000a0  30 64 64 38 31 30 35 34  00 91 90 6b a4 33 d1 51  |0dd81054...k.3.Q|
> 000000b0  96 ac c6 7e a4 fd ef fc  70 00 16 08 50 01 00 00  |...~....p...P...|
> 000000c0  d0 49 8a 02 54 ac be fb  01 0d e2 03 00 00 00 00  |.I..T...........|
> 000000d0  f1 51 8a 02 98 8d be fb  21 0d e2 03 00 00 00 00  |.Q......!.......|
> 000000e0  d4 2d 8a 02 61 b0 be fb  2e 12 e2 03 00 00 00 00  |.-..a...........|
> 000000f0  ae 5d 8a 02 f2 a4 be fb  ad 12 e2 03 00 00 00 00  |.]..............|
> 00000100  3e 60 8a 02 9e a1 be fb  ce 12 e2 03 00 00 00 00  |>`..............|
> 00000110  05 52 8a 02 19 b0 be fb  ec 14 e2 03 00 00 00 00  |.R..............|
> 00000120  99 49 8a 02 d0 98 be fb  d1 18 e2 03 00 00 00 00  |.I..............|
> 00000130  d6 41 8a 02 ff c0 be fb  00 1b e2 03 00 00 00 00  |.A..............|
 > ...

So it looks like there is a new header that is not documented and maybe 
other changes???

Also looking at the hex dump of the names and restrictions files these 
appears to have changed also.

Can someone update the document please.

Also, on the restrictions, a simple example would help a lot to make it 
more understandable.

Thanks,
   -Steve



More information about the OSRM-talk mailing list