NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

For applying to a project I would like to find out the length of all power (power=line) and railway lines (railway=rail) mapped by me.

Is there any way to find this out – maybe with osmium? I'm ready to go at great lengths, e.g. getting this information from a global dumpfile (if it fits into my 32 GB of memory).

asked 19 May '18, 17:02

Druzhba's gravatar image

Druzhba
150111118
accept rate: 0%


Depending on the how spread out the areas in wich you mapped railways and whether you want to include lines later edited by other mappers, you could try downloading via Overpass in JOSM (see https://overpass-turbo.eu/s/yWD , which will find a few bits of railway mapped by you).

The code I entered into the wizard: type:way & railway=rail & user:Druzhba

Once you have the lines in JOSM, just do Ctrl-F type:way to see the total length at the lower edge of the window.

permanent link

answered 19 May '18, 18:37

Hjart's gravatar image

Hjart
3.0k42656
accept rate: 18%

edited 19 May '18, 21:08

Thanks for your answers. Is it possible, that the URL was truncated?

(19 May '18, 21:02) Druzhba

Sorry,the trailing comma wasn't supposed to be a part of the link. I've fixed it now

(19 May '18, 21:10) Hjart

Follow this question

By Email:

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

By RSS:

Answers

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:

×68
×38
×24
×16

question asked: 19 May '18, 17:02

question was seen: 1,965 times

last updated: 19 May '18, 21:10

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum