[OSM-talk] JOSM unordered ways

Frederik Ramm frederik at remote.org
Tue May 8 22:08:55 BST 2007


Hi,

> Its definite! Open up an area in JOSM v 222, create nodes segments and then 
> form these into a way and about 50% of the time these ways will be in the 
> wrong order.  Then can be reordered correctly, but if you simply create a 
> way and do nothing else then 50% of the time it will be ordered incorrectly.
> 
> I cant however find any reason why 50% are Ok and 50% are not.

The answer is randomness.

In 222 the reorder way function was changed to also accept segments 
pointing in the wrong direction, for aligning them in a later step.

What I did not consider properly was that the create way function also 
used the reorder "segment sorting" part, without using the "segment 
realigning" part. This led so a 50% chance of the segments being ordered 
3,2,1 instead of 1,2,3.

It should be fixed in tonight's build. Please give feedback. As soon as 
API allows ;-)

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'




More information about the talk mailing list