On Thu, 9 Jul 2009, Dirk St?cker wrote:
On Thu, 9 Jul 2009, Christiaan Welvaart wrote:
It was mentioned that the sort feature is not really useful. Why is
that, and
how could it be made (more) useful?
I should have been more verbose. I did not deep-analyse the mechanism but
it seems you only sort the first block of ways. This does not work for
splintered relations.
Sure, that is a limitation of this simple feature. But I do not see how one
could sort a branched two-way route relation into a linear list.
Not branched two-way. Unfinished single way. This will consist of multiple
snippets which are unconnected, but should be connected by the ways
inbetween. The sort function should leave a sorting, which makes fixing
remaining bugs much easier than it is now.
So the general tasks is to leave as many connected parts as possible (i.e.
minimize unconnected parts).
I partially implemented this, see ticket 2941. The new code tries to
connect everything, but it does not explicitly try to minimize the number
of disconnected groups, so it may not be optimal in that respect. Also,
the distance between groups is not yet used to sort the groups.
Christiaan
_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev