Re: [OSM-talk] Length of ways
Am 01.12.2017 um 01:15 schrieb Andy Mabbett: > Do we have a tool that will give me the length of a way (or a > relation, made from several continuous ways)? > The next Overpass API release will come with a handy operator to calculate a way's length in meters. Please check the following preview example to get a first idea on how this will work: http://overpass-turbo.eu/s/tsJ -- ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
On Thu, Nov 30, 2017 at 6:13 PM, Martin Koppenhoeferwrote: > I’m not sure if this is still valid, but a long time ago the measurements > in Josm weren’t very accurate... It uses the great circle distance[0], which is accurate to about 0.5%[1], still over long distances that can add up. I believe it would be more accurate to project each segment of the way to a local coordinate system and measure, and then sum the measures. Mike [0] https://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/data/osm/Way.java (search on getLength) [1] https://en.wikipedia.org/wiki/Great-circle_distance especially for long distances, where the curvature of the earth leads to > significant errors if not accounted for. Don’t know whether Josm uses an > ellipsoid or spheroid (I recall initially it used carthesian coordinates > and calculated in a plane). Just wanted to mention it. > > There’s also a measurement plugin for josm. > > cheers, > Martin > ___ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk > ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
I’m not sure if this is still valid, but a long time ago the measurements in Josm weren’t very accurate, especially for long distances, where the curvature of the earth leads to significant errors if not accounted for. Don’t know whether Josm uses an ellipsoid or spheroid (I recall initially it used carthesian coordinates and calculated in a plane). Just wanted to mention it. There’s also a measurement plugin for josm. cheers, Martin ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
On 1 December 2017 at 00:45, Mike Thompsonwrote: > Relation length: > In JOSM > Select a member way > In the "tags/memberships" window scroll down to the "Member of" section > Right click > Select members (add) > Note the length in the lower margin of JOSM's main window Really, really, useful. Thank you. -- Andy Mabbett @pigsonthewing http://pigsonthewing.org.uk ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
On 1 December 2017 at 00:20, Mike Thompsonwrote: > On Thu, Nov 30, 2017 at 5:15 PM, Andy Mabbett > wrote: >> >> Do we have a tool that will give me the length of a way (or a >> relation, made from several continuous ways)? > If you select the way in JOSM it will give you the length in the lower > margin of the window. I'm a JOSM user, and I'd never noticed that! Thank you. > I don't know about relations. I'll add a feature request, tomorrow. -- Andy Mabbett @pigsonthewing http://pigsonthewing.org.uk ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
Relation length: In JOSM Select a member way In the "tags/memberships" window scroll down to the "Member of" section Right click Select members (add) Note the length in the lower margin of JOSM's main window On Thu, Nov 30, 2017 at 5:20 PM, Mike Thompsonwrote: > If you select the way in JOSM it will give you the length in the lower > margin of the window. I don't know about relations. > > On Thu, Nov 30, 2017 at 5:15 PM, Andy Mabbett > wrote: > >> Do we have a tool that will give me the length of a way (or a >> relation, made from several continuous ways)? >> >> -- >> Andy Mabbett >> @pigsonthewing >> http://pigsonthewing.org.uk >> >> ___ >> talk mailing list >> talk@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/talk >> > > ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
For a batch solution: * Pyosmium has an osm "road length" example: https://github.com/osmcode/pyosmium/blob/master/examples/road_length.py 2017-12-01 1:15 GMT+01:00 Andy Mabbett: > Do we have a tool that will give me the length of a way (or a > relation, made from several continuous ways)? > > -- > Andy Mabbett > @pigsonthewing > http://pigsonthewing.org.uk > > ___ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk > ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Length of ways
If you select the way in JOSM it will give you the length in the lower margin of the window. I don't know about relations. On Thu, Nov 30, 2017 at 5:15 PM, Andy Mabbettwrote: > Do we have a tool that will give me the length of a way (or a > relation, made from several continuous ways)? > > -- > Andy Mabbett > @pigsonthewing > http://pigsonthewing.org.uk > > ___ > talk mailing list > talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk > ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk
[OSM-talk] Length of ways
Do we have a tool that will give me the length of a way (or a relation, made from several continuous ways)? -- Andy Mabbett @pigsonthewing http://pigsonthewing.org.uk ___ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk