News:
- 2007-11-12: updated to use new Gpx datastructures of josm. Reenabled azimuth measurement, iff two nodes are selected
- 2007-07-02: added support to import data from gps layer to measurement layer (as path)
- 2007-07-02: compiled for java 5
In my java course at the university I had the chance to contribute to a java open source project of my choice. Therefore I implemented a small plugin for JOSM the java editor for OpenStreetMap. The plugin provides functionality to measure the length of segments/ways (by simply selecting them) or the draw a “path” on a separate measurement layer and show the length of that. Additionally the angle is shown when a single segment is selected.
If you find this plugin useful and have any suggestions to improve it please give me a hint and I’ll see what I can do. Of cause you are welcome to directly provide patches.
Donwload from: http://files.raphael-mack.de/josm/measurement.jar, to install it, see howto at the bottom of http://josm.eigenheimstrasse.de/wiki/Plugins
Get the source: svn co http://svn.raphaelmack.de/svn/measurement-plugin/trunk measurement
Here are some screenshots:
Hi!
am 29. April 2010 um 10:42I’m a new user of JOSM, but I find your plugin really really interesting!! You did a good work!!
I’d like to know if there is a way to save the length of the selection or the length of the path in the tag.
Thank you so much
Hi Irene,
thanks for the encouraging words. So far it is not possible to store the measurement directly in a tag. But while thinking about it, I’m more and more convinced, that this does not make much sense. If the length of a path is exactly what is measured from the existing data what is it worth? It would only cost disk space, and any application using the map data could just recalculate it. What happens, if a nod is added and moved slightly, to improve the resolution of the map data? Then the path length is out of sync.
What do you think? – Or did I misunderstand you completely?
Rapha
am 29. April 2010 um 22:26I am interested in closed ways measurement areas and I like your plugin. But I don’t understand what does mean angle in that case. I understand what is “longitud de la seleccion” (selection length}, but what does mean in a closed way “longitud del recorrido” (path length).
Thanks for your work.
thooby
am 23. Juli 2010 um 07:39Hi thooby,
the angle is not meaningful if a closes way is selected. Actually even if an open way is selected is is kind of strange: It gives the angle of the last segment of the way (in both cases). The angle is more useful, if you select two nodes.
I hope this helps, kind regrads,
am 23. Juli 2010 um 20:36Rapha
Great plugin. It would be great if you could change the unit of measurement to miles as well so I wouldn’t have to convert it myself. Thanks.
am 12. März 2013 um 22:57Hello cbunn,
Oh, this is a great idea. Anyhow, I’m more or less out of OSM business (interests shift from time to time) so I’ll probably never touch the code again. But as it is in the OSM repository, anyone (given a few java skills and a cup of motivation) should be able to implement this.
Regards,
am 15. März 2013 um 21:18Rapha