JoshD
2
I’d be interested in seeing the same thing. PostGIS can certainly do this, and I’m sure someone smarter than me can produce one line which does so using ST_Length. I don’t believe Osmosis has anything to help with finding the lengths of roads, but you certainly might use it to cut a chunk out of the Planet.osm file (or other extract). You could also use Python and OGR to create a script which goes over a grid, computing the total lengths for each section. If you get something working, please consider sharing your code and the results!