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

Split ways at junctions first #2444

Merged
merged 3 commits into from
Oct 27, 2021
Merged

Split ways at junctions first #2444

merged 3 commits into from
Oct 27, 2021

Conversation

easbar
Copy link
Member

@easbar easbar commented Oct 26, 2021

Here I changed the handling of OSM ways in OSMReader. This is an updated version of #2424 (since meanwhile we ignore barriers at junctions). Ways are first split at tower nodes and empty sections, then we split loops and later we add barrier edges. This also fixes the issue that we were not able to handle certain types of loop edges. We now split all loops into two pieces except loop segments consisting of only two nodes, which we now ignore. Previously we had to stop adding edges for the current way when we ran into such a case (see #1533, #1525). I checked that the import speed is the same as in master.

@easbar easbar added this to the 5.0 milestone Oct 26, 2021
@easbar easbar merged commit d4804ec into master Oct 27, 2021
@easbar easbar deleted the split_ways_at_junctions_first branch October 27, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant