Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osrm-extract fails with what(): Profile used unknown class name: tunnel #4825

Closed
radumas opened this issue Jan 23, 2018 · 2 comments
Closed

Comments

@radumas
Copy link
Contributor

radumas commented Jan 23, 2018

Using this .lua file I'm running sudo docker run -t -v $(pwd):/data osrm/osrm-backend osrm-extract -p /data/etc/ttc.lua /data/toronto_canada.osm.pbf and getting:

...
[info] Collecting start/end information on 4133 restrictions...ok, after 0.002969s
[info] writing street name index ... ok, after 0.024966s
terminate called after throwing an instance of 'osrm::util::exception'
  what():  Profile used unknown class name: tunnel

I can't seem to find tunnel in that file. This process works with v5.14.3

@danpat
Copy link
Member

danpat commented Jan 23, 2018

The tunnel class was added in 5.15. If you've got a custom Lua profile (and it seems you do), you'll need to adapt it for changes made in 5.15's car.lua:

https://github.com/Project-OSRM/osrm-backend/pull/4812/files

Note the changes made to car.lua in that PR - make the same changes to your ttc.lua file.

@daniel-j-h
Copy link
Member

Resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants