osmeditor4android icon indicating copy to clipboard operation
osmeditor4android copied to clipboard

sort --unique relation members

Open jidanni opened this issue 3 years ago • 5 comments

Screenshot_20220928-183100_Vespucci.jpg Sorting relations is great, but one must also implement (Unix) "sort --unique" to eliminate duplicate, else the user is very hard pressed to visually find them and weed them out, as they have no use in a relation.

(How the duplicates got into the relation is beyond the scope of this feature request.)

jidanni avatar Sep 28 '22 22:09 jidanni

Okay, a figure eight route might have the same nodes or ways embedded in them twice. But twice in a row?

So it seems if the user wants to hit the sort button, he also wants a unique sort. Else he wouldn't have hit the sort button, (which would probably mess up his figure eights.)

Well maybe unique could be a separate function. That could be pressed after the user sorts it.

jidanni avatar Sep 29 '22 01:09 jidanni

A stop at the end of a dead end road where a bus needs to go back the same way would be a legitimate case of a pair of the same ways next to each other in a relation. Therefore the "unique" function must be an optional additional function.

jidanni avatar Sep 29 '22 01:09 jidanni

Hmm, perhaps just show a red dot or DUP (for duplicate) in the list so the user could be aware of the issue and take steps himself if desired.

jidanni avatar Sep 29 '22 10:09 jidanni

Having the same member more than once is not an issue and common place, from turn restrictions to public transport routes (and which member should get a marker? they are are equally valid)

simonpoole avatar Sep 29 '22 11:09 simonpoole

(I was just thinking after sorting, looking at the list graphics, one can already see where disjoints etc. problems might be. So maybe on the icon for the 2nd, 3rd, 4th... occurance bunched together, have a little red dot...)

jidanni avatar Sep 29 '22 14:09 jidanni