When I am looking at the pure data in a certain area (like in the data layer or in any editor), where can I see the length of one way element in meters?

asked 24 Jul '10, 11:26

stephan75's gravatar image

accept rate: 6%

edited 24 Jul '10, 14:50

Jochen%20Topf's gravatar image

Jochen Topf

Pure OSM data only indirectly contains length information: The lengths themselves aren't stored anywhere but can be calculated from the nodes' coordinates. Therefore, you need a tool that calculates and displays this information.

The JOSM editor will show the length of a way segment as the way is being drawn (at the bottom of the edit window). To be able to measure the length or area of any existing object in JOSM, install the "Measurement" plugin from JOSM's plugin preferences.

permanent link

answered 24 Jul '10, 12:45

Tordanik's gravatar image

accept rate: 34%

edited 24 Jul '10, 13:57

Frederik%20Ramm's gravatar image

Frederik Ramm ♦

Found one more on my own:

Maybe the most simple way to see the length of an OSM way element in a kind of data layer is to load the area (or just the way) in the editor Merkaartor http://wiki.openstreetmap.org/wiki/Merkaartor.

You only need to hover over the way with the mouse, or select it. The length is displayed in the information panel on the right of the screen.

permanent link

answered 27 Jul '10, 15:51

stephan75's gravatar image

accept rate: 6%

Maperitive can show you lengths of ways:

  1. Load the OSM data from a file using the "load-source mydata.osm" command
  2. Find a way using some kind of search criteria, for example "find way[highway=footway]". This will find all footways.
  3. List the results using the "list-results" command. It will show a list of all matching ways, their IDs and lengths in meters.
  4. You view each individual search result using the F3 (find-next) and SHIFT+F3 (find-prev) keys.
permanent link

answered 26 Jul '10, 13:59

Breki's gravatar image

accept rate: 10%

Wow! Great tip!

(07 Dec '17, 19:28) Linhares

OSM data contains only the geometries stored as nodes, ways and relations. If you want to obtain the some statistics on an element, you will need to work with tools like Postgis or specialized program.

Postgis 1.5 has a new geography type which can be used to return numbers like length, area in meters. You would need to use osm2pgsql to import your data and then create a geography column based on the geometry column created by osm2psql.

This method is quite complicated and should mostly be used for more advanced users.

permanent link

answered 26 Jul '10, 12:51

Melaskia's gravatar image

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: 24 Jul '10, 11:26

question was seen: 13,195 times

last updated: 07 Dec '17, 19:28

powered by OSQA