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

Get length of all power / railway lines mapped by 1 user

0

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%


One Answer:

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.

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

Source code available on GitHub .