What is a good way to turn highway ways / roads into polygons?

I’m trying to map publicly accessible space based on OSM data. I’m implementing the data analysis in Python. All elements that are of interest to my analysis have to be polygonized at some point, for my visualization. That is particularly challenging with roads, so with way elements with a highway tag. My idea is to assume specific road widths depending on given tags like width, lanes, highway (type), etc. and then to buffer the ways based on these assumptions. I am aware, that this can only be an approximation. I was wondering, if someone developed an approach for polgonizing roads in a previous, similar project.
I want to apply my data analysis and visualization to Vienna, Austria, so I’m also looking for typical road widths in Austria.

3 posts - 3 participants

Read full topic

Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/what-is-a-good-way-to-turn-highway-ways-roads-into-polygons/9213