Very nice. :)<br><br><div><span class="gmail_quote">On 1/13/07, <b class="gmail_sendername"><a href="mailto:matthew-osm@newtoncomputing.co.uk">matthew-osm@newtoncomputing.co.uk</a></b> <<a href="mailto:matthew-osm@newtoncomputing.co.uk">
matthew-osm@newtoncomputing.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I've been working on a feature for JOSM to auto-align the distance of nodes on
<br>dual-carriageways. You can currently do the following:<br><br> a) Select two nodes - they will be be set to a set distance apart from each<br> other.<br><br> b) Select two ways - each pair of nodes in the ways will be set to a set
<br> distance apart from each other.<br><br>This is obviously intended, like the Align in Circle patch, for when you have<br>the underlying data and can make sure things are placed in the correct<br>positions. Please don't use it on roads where you don't know that the
<br>carriageways don't diverge from each other...<br><br>Currently there are some limitations. Notes are below:<br><br>* the distance is fixed - it is nominally 30 metres, if my great circle distance<br> calculations are correct. There should be a dialog that allow this to be set.
<br><br>* node distances are set, but the nodes are not rotated. I have worked out an<br> algorithm and this will be implemented next. This means that things can look a<br> bit distorted if nodes are not fairly well placed initially.
<br><br>* ways of differing lengths and/or different numbers of nodes may have unusual<br> results. There are semi-plans for ignoring parts of ways that are not<br> relevant. However, nodes should generally be in pairs along the way already
<br> otherwise it will break. Currently one end of the ways must be aligned.<br><br> this will work:<br><br> *---->*----->*---------->*------->*-------->*<br> *----->*---->*--------->*--------->*
<br><br> this will break:<br><br> *---->*----->*---------->*------->*-------->*<br> *---->*--------->*--------->*<br><br>* ways with branches are not supported - they must be paths. I do not consider
<br> this to be a bug ;-)<br><br>* you might see some dialog boxes with debugging info in; to be removed.<br><br>JOSM 191 with the patch is available from the below location, as well as the<br>patch itself. Suggestions/patches to improve the code please - I'm not a Java
<br>programmer, and get very worked up that I could code it 90% less lines in perl<br>;-)<br><br> <a href="http://dl.newtoncomputing.co.uk/josm191_equidist_ways.patch">http://dl.newtoncomputing.co.uk/josm191_equidist_ways.patch
</a><br> <a href="http://dl.newtoncomputing.co.uk/josm-equidist.jar">http://dl.newtoncomputing.co.uk/josm-equidist.jar</a><br><br>I'll be away until mid-week now, so may not respond quickly to replies, sorry.<br><br>
Thanks,<br><br>--<br>Matthew<br><br><br>_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ray Booysen<br><a href="mailto:raybooysen@rjb.za.net">raybooysen@rjb.za.net</a>