#11302 closed defect (fixed)
"distribute nodes" acts weirdly if the way is not reasonably straight already
Reported by: | richlv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 15.04 |
Component: | Core | Version: | tested |
Keywords: | distribute_nodes | Cc: |
Description
see the attached testcase. select the way, hit shift+b. instead of being distributed evenly, nodes are distributed "somehow" :)
seems to be caused by they way going "backwards" ?
note that this is different from ticket #6385 - changing to line here is ok, but the nodes are not distributed evenly.
josm 8159
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | distribute_nodes_testcase.osm added |
---|
comment:2 by , 10 years ago
I look at the source code.
The algorithm does not take into account the order of nodes when a way is selected.
So I propose to keep nodes order when one way is selected.
If one or two nodes of this way are also selected, these nodes should be fix.
No changes in other cases.
comment:5 by , 10 years ago
looks like with latest-8248, if a way is selected (without any nodes), all nodes are distributed equally and the way is straightened out between the first and the last node of the way - which is perfect for me, huge thanks :)
ok, just in case somebody else is interested in this, there is a workaround :)
the trick here is even distribution that is performed by "align in circle". temporary ways offer a way to keep start/end nodes exactly where they were.
this is not perfect as the distribution at both ends of the way is slightly off (because of that moving), but that's still much closer to a good result :)