Or in miles. How can you calculate the total road length for a country. Or a continent, or a city, etc etc

I installed Qgis and learned to play a little with it.

There i can select to have all roads except track. Or a lot of nice stuff you can do, but one thing that i cannot figure it out in Qgis is to calculate the length of a road. Or calculate the lenght of all the roads.

So i can download once per week and do a query, so i can tell to people that this week we have added 200 km more or roads.

asked 14 Sep '12, 14:33

Badita%20Florin's gravatar image

Badita Florin
accept rate: 0%

edited 15 Sep '12, 14:57

stephan75's gravatar image


One option is to use this Perl script, which will calculate the length of roads in an OSM file: osm-length-2.pl For more details, see this post by Frederik Ramm on the talk mailing list: [OSM-talk] Statistics on road network length?

Some of the other posts in that mailing list thread may be helpful.

permanent link

answered 14 Sep '12, 19:26

Vclaw's gravatar image

accept rate: 22%

Perhaps this question helps. I am currently waiting for someone to confirm that this is a good approach :)

permanent link

answered 31 Oct '14, 23:23

mvexel's gravatar image

accept rate: 0%

For regular updates, Vclaw's answer is probably best. But I don't think what you were trying to do is difficult in qgis. Here's a tutorial.

permanent link

answered 18 Jun '15, 21:56

joost%20schouppe's gravatar image

joost schouppe
accept rate: 12%


osm-length-2.pl i cannot make it work and the other alternative, that i forgot right now what it was, the link it`s no more.

permanent link

answered 16 Sep '12, 20:07

Badita%20Florin's gravatar image

Badita Florin
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Sep '12, 14:33

question was seen: 5,519 times

last updated: 18 Jun '15, 21:56

powered by OSQA