a-b-street / osm2streets

Convert OSM to street networks with detailed geometry
https://a-b-street.github.io/osm2streets
Apache License 2.0
101 stars 9 forks source link

Trace a large block around sidewalks and crossings only #251

Closed dabreegster closed 7 months ago

dabreegster commented 7 months ago

A simple next step towards #248 --when tracing a block, if we only consider crossings and sidewalks AND the road has sidewalks on both sides, then we wind up with a nice grouping for the "entire" junction or "entire" road including side-paths.

Here are some junctions of varying complexity: image image image

And some roads: image image

I think this approach of grouping entire "bundles" of roads or junctions could be used for various purposes:

I'll merge this so people can play with it at https://osm2streets.org. Click a sidewalk, then "Trace sidewalks on left/right" (the direction is... not always consistent, but one should work). Please do comment with any interesting test cases you find, either working or not!

dabreegster commented 7 months ago

Are there cases where the "entire" road including side-paths shouldn't be bounded on all sides by footways and crossings? Cases with sidepaths on only one side of a road will take some work. But are there any other real-world situations where maybe a cyclepath is on the "outside" and the pavement on the "inside"?

Robinlovelace commented 7 months ago

Those are some complicated junctions in there! Fully agree that grouping all the elements into blocks makes sense. Not had a play but intend to do so after the Easter break. Thanks for the link to Networkmerge, not production ready as ineffiecient and is mosly focussed on merging multiple lanes into a single lane so may not be that relevant here.