This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How can I get roads and rails properties (length, width, ….) from an exported area of OpenStreetMap?

0

Hi, how can I get the roads and rails properties, as length, width, number of lanes and (traffic) direction from an exported area of OpenStreetMap?

I would need to export/download nodes and edges of an area and get the roads and rails properties (at least the length) - Any idea?

asked 15 Mar '22, 12:05

s_limo's gravatar image

s_limo
21112
accept rate: 0%

edited 15 Mar '22, 12:13


One Answer:

0

You could open the file in QGIS if it is small, and do the measurements there. If it is bigger and you don’t have a dedicated software (which likely exists for road or rail lengths, but I don’t have a link at hand) you could import it into a geo database and get the lengths there. For example with osm2pgsql in latlong mode into PostGIS

answered 20 Mar '22, 18:52

dieterdreist's gravatar image

dieterdreist
3.7k113567
accept rate: 3%

Source code available on GitHub .