-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Relation:restriction is invalid #6322
Comments
Restrictions are supported by OSRM. Can you share an OSM link to the junction in question, or a link to the OSM file you are using? |
Have “way-vias” (fromWayId, viaWayId, toWayId) and “node-vias” (fromWayId, viaNodeId toWayId) been supported? I'm using SHP files to convert to OSM files, so the output file is huge. I can upload part of the file, could you please help to analyze it? The content format of the files is basically the same. |
Yes, it supports both
Processing of restrictions happens prior to algorithm specific processing. It is supported by both.
It will be hard to reproduce correctly if the whole file is not available. Given that you're converting from another data source, I suspect the problem is somewhere in the conversion logic. |
Maybe I'm using an older version? It's Version 5.23.0 This is part of the OSM file. |
having done this kind of exercise quite often, I also suspect connectivity problems for the relation. you can check that somewhat with osmium, e.g. |
Well, thank you very much for your suggestion. I'll try it out. |
Yes, the relations refer to ways and nodes that don't exist in the file. You'll need to figure out why that's happening. |
The original data in the file contains these nodes and ways, because some nodes and ways are deleted randomly. Please do not close the issue yet. |
Can you use “osmium extract” for the extraction? By default it will complete ways, ie pull in all nodes of all ways which appear spatially in the bbox you’re extracting with. We need the full topology extracted from your OSM file for your relation: all way and node objects it’s referencing (recursively) in case they all even exist. |
@mjjbell I suspect the 5.23.0 branch does not support via-ways. i made a try, i routed it using the branch 5.23.0 and my test.osm data, and the result was wrong. But, when i routed with the branch 5.26.0 and the same test data, the results were correct. |
I see. Single via-ways are supported in 5.23.0 and multiple via-ways were added in 5.24.0, so I suspect that's the change that made the difference. |
the test data does not contain multiple via-ways. you can verify the problems that with 5.23.0 and 5.24.0 on via-ways. |
I'm learning how to use osmium. Also, are there any tools to visualize the .osm data? |
This issue seems to be stale. It will be closed in 30 days if no further activity occurs. |
#Hello, Everyone! I have a question.
@danpat @mjjbell @daniel-j-h
Through OpenStreetMap wiki, I learned that I could use Relation:restriction to solve some turning problems.
https://wiki.openstreetmap.org/wiki/Relation:restriction
For example,
but, the.OSM file that i compiled with this format does not solve the turning problem.
Is it because OSRM doesn't support it yet?
Historically, this “way-vias” (fromWayId, viaWayId, toWayId) has been tried to handle
The text was updated successfully, but these errors were encountered: