Strangely wiggly streets

12 views
Skip to first unread message

arnt

unread,
Feb 20, 2020, 9:30:56 AM2/20/20
to sprawlmap
Hi,

just a cosmetic issue:

https://www.sprawlmap.org/#15.9/48.128551/11.608897 shows a number of wiggly streets. In actual fact those streets are straight. The street in the middle (called Friedenstraße) is straight apart from a very slight curve. The giant wiggle in the middle is not real.

However, the streets actually meet as in reality, so this issue is just cosmetic, not topological.

Arnt

Adam Millard-Ball

unread,
Feb 20, 2020, 11:53:15 AM2/20/20
to sprawlmap
This was a big issue that we struggled with. In some places, there are parallel edges (e.g. different sides of a dual carriageway), or staggered intersections. We wanted to avoid our measures being sensitive to the precise geometric representation of a street in OSM, and so we collapsed nodes that are within a radius, and realigned edges to meet at that node. This leads to a more accurate NETWORK representation, but creates these weird wiggly streets that you point out.

See https://gis.stackexchange.com/questions/98269/collapse-dual-carriageway-lines-in-postgis for some of the challenges. We'd love to hear ideas about how to fix this more elegantly.

Adam

arnt

unread,
Feb 21, 2020, 3:40:29 AM2/21/20
to sprawlmap
If I understand you correctly, the collapsing works, but you're not picking the ideal point within the collapsed radius. The average of the points that you collapse seems like a decent candidate. But I cannot muster much enthusiasm. It's just cosmetic after all, the important part works.

Arnt
Reply all
Reply to author
Forward
0 new messages