I've extracted the road network of a city from openstreetmaps (filetype: osm). One part of the road networks look like this:
However, there are too many details in this data.
I'd like to represent each road with just one linestring, just like this:
Is there any convenient (or maybe a tricky) way to reach that? I've searched around our site, I found some map skeletonization/genratzation may help, but I'm not quite sure about that. I've also tried the "network toplogy cleaning" function in OpenJUMP, but it didn't work. I would very happy to see a software/library can help me on this.
Or, is there any alternative way to extract rough(low level) road network of a city from other map source?