0

I am trying to extract a Motorbike routing. I used this LUA script customized by me. Actually I didn't do anything but made few changes in the bicycle profile. Now when I am trying to extract OSRM file its returning the following error

[info] Parsed 0 location-dependent features with 0 GeoJSON polygons
[info] Using script osrm-backend/profiles/motorbike.lua
[info] Input file: map.osm.pbf
[info] Profile: motorbike.lua
[info] Threads: 1
[info] Parsing in progress..
[info] input file generated by osmium/1.8.0
[info] timestamp: 2019-04-09T20:15:02Z
[info] Using profile api version 4
[info] Found no turn restriction tags
[info] Parse relations ...
[info] Parse ways and nodes ...
[info] Parsing finished after 154.658 seconds
[info] Raw input contains 39260455 nodes, 5240892 ways, and 0 relations, 52 restrictions
[info] Sorting used nodes        ... ok, after 2e-06s
[info] Erasing duplicate nodes   ... ok, after 0s
[info] Sorting all nodes         ... ok, after 0.08123s
[info] Building node id map      ... ok, after 0.074601s
[info] Confirming/Writing used nodes     ... ok, after 0.070329s
[info] Writing barrier nodes     ... ok, after 0s
[info] Writing traffic light nodes     ... ok, after 0s
[info] Processed 31 nodes
[info] Sorting edges by start    ... ok, after 2e-06s
[info] Setting start coords      ... ok, after 0.07664s
[info] Sorting edges by target   ... ok, after 2e-06s
[info] Computing edge weights    ... ok, after 0.077764s
[info] Sorting edges by renumbered start ... ok, after 2e-06s
[info] Writing used edges       ... ok, after 6.9e-05s -- Processed 24 edges
[info] Writing way meta-data     ... ok, after 3.5e-05s -- Metadata contains << 12 entries.
[info] Sorting used ways         ... ok, after 1e-06s
[info] Collecting start/end information on 0 maneuver overrides...ok, after 0s
[info] Collecting start/end information on 0 maneuver overrides...ok, after 0s
[info] Collecting start/end information on 52 restrictions...ok, after 1.9e-05s
[info] Collecting start/end information on 52 restrictions...ok, after 5e-05s
[info] writing street name index ... ok, after 0.000638s
[info] extraction finished after 155.085s
[info] Generating edge-expanded graph representation
[info] . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Node compression ratio: 0.645161
[info] Edge compression ratio: 0.541667
[info]  graph compression removed 7 annotations of 12 in 6e-06 seconds
[info] Find segregated edges in node-based graph ...
[info] ok, after 0.00355s
[info] Segregated edges count = 0
[info] Writing nodes for nodes-based and edges-based graphs ...
[info] Geometry successfully removed:
  compressed edges: 100
  compressed geometries: 48
  longest chain length: 5
  cmpr ratio: 2.08333
  avg chain length: 0.48
[info] Generating edge expanded nodes ... 
[info] . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[info] Expanding via-way turn restrictions ... 
[info] 
[info] Generated 26 nodes (0 of which are duplicates)  and 24 segments in edge-expanded graph
[info] Generating edge-expanded edges 
[info] . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100% 
[info] Sorting and writing 0 maneuver overrides...
[info] done.
[info] Renumbering turns
[info] Writing 0 conditional turn penalties...
[info] Generated 24 edge based node segments
[info] Node-based graph contains 26 edges
[info] Edge-expanded graph ...
[info]   contains 34 edges
[info] Timing statistics for edge-expanded graph:
[info] Renumbering edges: 2e-06s
[info] Generating nodes: 0.001003s
[info] Generating edges: 0.002845s
[info] Generating guidance turns 
[info] . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100% 
[info] done.
[info] Created 6 entry classes and 15 Bearing Classes
[info] Handled: 0 of 0 lanes: -nan %.
[info] Assigned 0 turn instruction types:
[info] Assigned 0 turn instruction modifiers:
[info] Guidance turn annotations took 0.002141s
[info] Writing Intersection Classification Data
[info] ok, after 0.00035s
[info] Writing Turns and Lane Data...
[info] ok, after 0.00066s
[info] Saving edge-based node weights to file.
[info] Done writing. (0.000201)
[info] Computing strictly connected components ...
[info] Found 8 SCC (0 large, 8 small)
[info] SCC run took: 3.064e-06s
[info] Building r-tree ...
[info] Constructing r-tree of 24 segments build on-top of 31 coordinates
terminate called after throwing an instance of 'osrm::util::exception'
  what():  There are no snappable edges left after processing.  Are you setting travel modes correctly in the profile?  Cannot continue.src/extractor/extractor.cpp:826
Aborted (core dumped)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.