a-b-street / osm2streets

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

Investigate TopoJSON and/or MapShaper #170

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

I just stumbled across two related tools that're immensely cool.

1) Download the Geometry layer from osm2streets as GeoJSON 2) Upload to https://mapshaper.org/ 3) On the right, go to edit vertices and then drag some points around

This seems like an immensely useful tool to debug/explore problems with funny geometry we produce. It does something very powerful underneath: take a bunch of unrelated GeoJSON polygons and find shared edges. (It = TopoJSON, but the mapshaper frontend and/or implementation works particularly well.) About half of the hard work I've done in #10 is possibly irrelevant; this implementation does what I want in a much more robust way, with options for quantizing / dealing with geometry very close together.

https://user-images.githubusercontent.com/1664407/212475698-42e77efb-3ecb-40ce-b3f0-1005bb095f5b.mp4