source: josm/trunk/test/data/regress/18420/user-sample.osm@ 19265

Last change on this file since 19265 was 15610, checked in by GerdP, 5 years ago

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 size: 5.9 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<osm version='0.6' generator='JOSM'>
3 <node id='-102242' action='modify' visible='true' lat='49.85445425656' lon='6.20573600175' />
4 <node id='-102249' action='modify' visible='true' lat='49.85339489918' lon='6.2054318408' />
5 <node id='-102257' action='modify' visible='true' lat='49.85474742627' lon='6.20620317373'>
6 <tag k='name' v='select me as 2nd' />
7 </node>
8 <node id='-102261' action='modify' visible='true' lat='49.8557970815' lon='6.2070500797' />
9 <node id='-102271' action='modify' visible='true' lat='49.85339561065' lon='6.2055471144' />
10 <node id='-102273' action='modify' visible='true' lat='49.85407425905' lon='6.20560045514' />
11 <node id='-102275' action='modify' visible='true' lat='49.85442524568' lon='6.2058417443' />
12 <node id='-102279' action='modify' visible='true' lat='49.85456260373' lon='6.20587782877' />
13 <node id='-102281' action='modify' visible='true' lat='49.85477467725' lon='6.20628677444' />
14 <node id='-102324' action='modify' visible='true' lat='49.85483992593' lon='6.20625346765' />
15 <node id='-102352' action='modify' visible='true' lat='49.85550656553' lon='6.20592355192' />
16 <node id='-102420' action='modify' visible='true' lat='49.85460321334' lon='6.20577606653' />
17 <node id='-102428' action='modify' visible='true' lat='49.85409117033' lon='6.20548808684' />
18 <node id='-102435' action='modify' visible='true' lat='49.85515876806' lon='6.20731720561' />
19 <node id='-102438' action='modify' visible='true' lat='49.85323533708' lon='6.20638577129' />
20 <node id='-102440' action='modify' visible='true' lat='49.85405635846' lon='6.20716871608' />
21 <node id='-102470' action='modify' visible='true' lat='49.85434275314' lon='6.20686769217' />
22 <node id='-102472' action='modify' visible='true' lat='49.85475017292' lon='6.20700602348' />
23 <node id='-102474' action='modify' visible='true' lat='49.8550229294' lon='6.20756865982' />
24 <node id='-102477' action='modify' visible='true' lat='49.85492640371' lon='6.20680415602' />
25 <node id='-102485' action='modify' visible='true' lat='49.85466388483' lon='6.20606218587'>
26 <tag k='name' v='select me 1st' />
27 </node>
28 <node id='-102529' action='modify' visible='true' lat='49.85342971443' lon='6.20722721195' />
29 <node id='-102543' action='modify' visible='true' lat='49.85556781365' lon='6.20791566341' />
30 <node id='-102545' action='modify' visible='true' lat='49.85591013282' lon='6.2080731523' />
31 <node id='-102548' action='modify' visible='true' lat='49.85319488861' lon='6.20547371315' />
32 <node id='-102550' action='modify' visible='true' lat='49.85297440265' lon='6.20532071944' />
33 <node id='-102557' action='modify' visible='true' lat='49.85287576256' lon='6.20505073848' />
34 <node id='-102559' action='modify' visible='true' lat='49.8528525531' lon='6.20471776196' />
35 <node id='-102561' action='modify' visible='true' lat='49.85293378617' lon='6.20388082098' />
36 <node id='-102708' action='modify' visible='true' lat='49.85575212081' lon='6.20732366502' />
37 <node id='-102763' action='modify' visible='true' lat='49.8547871834' lon='6.2060710761' />
38 <node id='-103160' action='modify' visible='true' lat='49.85430297902' lon='6.20577066869' />
39 <node id='-103218' action='modify' visible='true' lat='49.85420527205' lon='6.20566069946' />
40 <node id='-103257' action='modify' visible='true' lat='49.85470936517' lon='6.20589941472' />
41 <node id='-103485' action='modify' visible='true' lat='49.85424936952' lon='6.20556682214' />
42 <node id='-103491' action='modify' visible='true' lat='49.85435312899' lon='6.20567947358' />
43 <node id='-103499' action='modify' visible='true' lat='49.85577978893' lon='6.20668529928' />
44 <node id='-103514' action='modify' visible='true' lat='49.85560686117' lon='6.20779037207' />
45 <node id='-103563' action='modify' visible='true' lat='49.8559423371' lon='6.20794325799' />
46 <node id='-103800' action='modify' visible='true' lat='49.85460214873' lon='6.20684891671' />
47 <node id='-104035' action='modify' visible='true' lat='49.85539243377' lon='6.20589672983' />
48 <way id='-104036' action='modify' visible='true'>
49 <nd ref='-102242' />
50 <nd ref='-103491' />
51 <nd ref='-103485' />
52 <nd ref='-102428' />
53 <nd ref='-102249' />
54 <nd ref='-102271' />
55 <nd ref='-102273' />
56 <nd ref='-103218' />
57 <nd ref='-103160' />
58 <nd ref='-102275' />
59 <nd ref='-102279' />
60 <nd ref='-102257' />
61 <nd ref='-102477' />
62 <nd ref='-102435' />
63 <nd ref='-102543' />
64 <nd ref='-102545' />
65 <nd ref='-103563' />
66 <nd ref='-103514' />
67 <nd ref='-102708' />
68 <nd ref='-102261' />
69 <nd ref='-103499' />
70 <nd ref='-102352' />
71 <nd ref='-104035' />
72 <nd ref='-102324' />
73 <nd ref='-102763' />
74 <nd ref='-103257' />
75 <nd ref='-102420' />
76 <nd ref='-102242' />
77 <tag k='landuse' v='grass' />
78 </way>
79 <way id='-104037' action='modify' visible='true'>
80 <nd ref='-102561' />
81 <nd ref='-102559' />
82 <nd ref='-102557' />
83 <nd ref='-102550' />
84 <nd ref='-102548' />
85 <nd ref='-102271' />
86 <nd ref='-102273' />
87 <nd ref='-103218' />
88 <nd ref='-103160' />
89 <nd ref='-102275' />
90 <nd ref='-102279' />
91 <nd ref='-102281' />
92 <nd ref='-102477' />
93 <nd ref='-102435' />
94 <nd ref='-102543' />
95 <nd ref='-102545' />
96 <tag k='highway' v='unclassified' />
97 </way>
98 <way id='-104038' action='modify' visible='true'>
99 <nd ref='-102273' />
100 <nd ref='-102271' />
101 <nd ref='-102438' />
102 <nd ref='-102529' />
103 <nd ref='-102440' />
104 <nd ref='-102470' />
105 <nd ref='-103800' />
106 <nd ref='-102472' />
107 <nd ref='-102474' />
108 <nd ref='-102435' />
109 <nd ref='-102477' />
110 <nd ref='-102281' />
111 <nd ref='-102485' />
112 <nd ref='-102279' />
113 <nd ref='-102275' />
114 <nd ref='-103160' />
115 <nd ref='-103218' />
116 <nd ref='-102273' />
117 <tag k='landuse' v='forest' />
118 </way>
119</osm>
Note: See TracBrowser for help on using the repository browser.