You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSM data for Toronto has hundreds of split ways representing larger streets where they are divided by traffic islands:
This is usually done to help with car routing, but they are ugly and inappropriate at the scale of this map. They should somehow be merged/simplified into a single way. Some of this can be done directly in OSM where appropriate, but most of the changes will need to be made algorithmically while processing the data.
Split ways can be detected as oneway pairs having the same name, especially if they connect at a shared node to a two-way with the same common name.
There may also be cases where it would be innapropiate to merge ways, such as some parts of Spadina, Queensway, University, etc. We would need to specify some sort of distance threshold past which merging wouldn't happen. We wouldn't want to eliminate the Spadina Crescent or Queens Park!
The text was updated successfully, but these errors were encountered:
It seems like some sort of force-based (e.g. D3-force) algorithm could work here.
identify / isolate the split ways
apply inverse square (gravity) force to pull nodes on opposite ways together, perhaps interpolating/adding nodes
apply force (linear???) to pull nodes back toward their given positions
apply tension to line, so nodes pulling together can pull in nodes that would otherwise stay putt
construct single line from collapsed edges
Where very close, lines should essentially snap together. Where very far apart (e.g. Spadina Crescent) they should stay at their original positions. Edge cases like the approach to that crescent should have a smooth transition between merged and split.
OSM data for Toronto has hundreds of split ways representing larger streets where they are divided by traffic islands:
This is usually done to help with car routing, but they are ugly and inappropriate at the scale of this map. They should somehow be merged/simplified into a single way. Some of this can be done directly in OSM where appropriate, but most of the changes will need to be made algorithmically while processing the data.
Split ways can be detected as oneway pairs having the same name, especially if they connect at a shared node to a two-way with the same common name.
There may also be cases where it would be innapropiate to merge ways, such as some parts of Spadina, Queensway, University, etc. We would need to specify some sort of distance threshold past which merging wouldn't happen. We wouldn't want to eliminate the Spadina Crescent or Queens Park!
The text was updated successfully, but these errors were encountered: