Changeset 15610 in josm for trunk/test/data/regress/18189


Ignore:
Timestamp:
2019-12-24T11:01:03+01:00 (5 years ago)
Author:
GerdP
Message:

fix #18420: Move node onto ways not working anymore

  • sort result from NavigatableComponent again using higher precision
  • improve handling of multiple target ways with similar distance so that the node is added to the closest segment and also to segments with almost the same position but NOT to segments further away or with a similar distance but different position.
  • fix possible error when multiple nodes are selected
  • use LinkedHashMap for field data to avoid random results from iterator (hope this fixes the unit test problems)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/regress/18189/moveontocrossing.osm

    r15428 r15610  
    11<?xml version='1.0' encoding='UTF-8'?>
    22<osm version='0.6' upload='never' generator='JOSM'>
    3   <node id='-117814' action='modify' visible='true' lat='-21.08763547741' lon='-50.39117567184' />
    4   <node id='-117816' action='modify' visible='true' lat='-21.09088329715' lon='-50.38820000246' />
    5   <node id='-117818' action='modify' visible='true' lat='-21.09002420335' lon='-50.39142270855' />
    6   <node id='-117820' action='modify' visible='true' lat='-21.08836886226' lon='-50.38800911046' />
    7   <node id='-117822' action='modify' visible='true' lat='-21.089215371' lon='-50.38971309121'>
     3  <node id='-117848' action='modify' lat='-21.08763547741' lon='-50.39117567184' />
     4  <node id='-117850' action='modify' lat='-21.09088329715' lon='-50.38820000246' />
     5  <node id='-117852' action='modify' lat='-21.09002420335' lon='-50.39142270855' />
     6  <node id='-117854' action='modify' lat='-21.08836886226' lon='-50.38800911046' />
     7  <node id='-117856' action='modify' lat='-21.08922243916' lon='-50.38958051884'>
    88    <tag k='name' v='select me and press N' />
    99  </node>
    10   <node id='-117824' action='modify' visible='true' lat='-21.08920644697' lon='-50.38973634946' />
    11   <way id='-117825' action='modify' visible='true'>
    12     <nd ref='-117814' />
    13     <nd ref='-117824' />
    14     <nd ref='-117816' />
     10  <node id='-117858' action='modify' lat='-21.08920644697' lon='-50.38973634946' />
     11  <way id='-117859' action='modify'>
     12    <nd ref='-117848' />
     13    <nd ref='-117858' />
     14    <nd ref='-117850' />
    1515    <tag k='name' v='w1' />
    1616  </way>
    17   <way id='-117826' action='modify' visible='true'>
    18     <nd ref='-117818' />
    19     <nd ref='-117824' />
    20     <nd ref='-117820' />
     17  <way id='-117860' action='modify'>
     18    <nd ref='-117852' />
     19    <nd ref='-117858' />
     20    <nd ref='-117854' />
    2121    <tag k='name' v='w2' />
    2222  </way>
Note: See TracChangeset for help on using the changeset viewer.