Skip to main content
edited tags
Link
underdark
  • 85k
  • 22
  • 238
  • 419
Source Link
bijan
  • 21
  • 1

Merging multilane road into one lane

I have a road network file (openstreetmap exported file) that has various types of edges (freeway, highway, primary, residential, service, ...). Some of these edges have multiple lanes (parallel), so that each one of these lanes considered a separate edge in road network, for example: image

How can I merge these lanes in one lane and construct the road network algorithmic (I know in some applications, we can select ways and merge them with right click, but I can't do this for 100000+ edges in large cities)?