source: josm/trunk/test/data/alignCircleTwoWaysBefore.osm@ 19222

Last change on this file since 19222 was 17386, checked in by GerdP, 4 years ago

fix #20041: Align nodes in Circle creates Command which changes nothing

  • only create move command if node is visibly moved
  • reject a self-intersecting way
  • reject old nodes outside of download area (the original code only shows an info and continues)
  • add some unit tests to improve coverage
File size: 7.7 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<osm version='0.6' upload='never' generator='JOSM'>
3 <node id='21657940' version='11' lat='52.892583' lon='8.4304035' />
4 <node id='21658035' version='9' lat='52.8925365' lon='8.4306565'>
5 <tag k='converted_by' v='Track2osm' />
6 </node>
7 <node id='21658036' version='5' lat='52.8922741' lon='8.4295676'>
8 <tag k='converted_by' v='Track2osm' />
9 </node>
10 <node id='21658081' version='6' lat='52.8931418' lon='8.4330586'>
11 <tag k='converted_by' v='Track2osm' />
12 </node>
13 <node id='73227374' version='11' lat='52.8925356' lon='8.4304845' />
14 <node id='76465657' version='7' lat='52.8930039' lon='8.434235' />
15 <node id='76474542' version='4' lat='52.8930507' lon='8.4304979' />
16 <node id='76474543' version='3' lat='52.8928728' lon='8.4304707' />
17 <node id='76478545' version='6' lat='52.8947806' lon='8.4321263'>
18 <tag k='highway' v='traffic_signals' />
19 </node>
20 <node id='77636315' version='7' lat='52.8925235' lon='8.4305719' />
21 <node id='77636748' version='9' lat='52.8927478' lon='8.4305301' />
22 <node id='77636749' version='7' lat='52.8927054' lon='8.4304192' />
23 <node id='77636750' version='7' lat='52.8926437' lon='8.4303813' />
24 <node id='78037253' version='5' lat='52.894249' lon='8.4316544' />
25 <node id='81224584' version='6' lat='52.8910536' lon='8.4274468' />
26 <node id='82466180' version='6' lat='52.8913547' lon='8.4279641' />
27 <node id='92811392' version='5' lat='52.891013' lon='8.4315072' />
28 <node id='92811394' version='4' lat='52.8906098' lon='8.4318617' />
29 <node id='92811395' version='6' lat='52.8893739' lon='8.4330256' />
30 <node id='105304730' version='5' lat='52.8938347' lon='8.4311831' />
31 <node id='305468587' version='5' lat='52.8889607' lon='8.4332039' />
32 <node id='305492177' version='5' lat='52.8916124' lon='8.4311284' />
33 <node id='305492179' version='5' lat='52.891801' lon='8.4310449' />
34 <node id='305492181' version='5' lat='52.8927226' lon='8.4306919' />
35 <node id='307388519' version='3' lat='52.891443' lon='8.428123'>
36 <tag k='railway' v='level_crossing' />
37 </node>
38 <node id='440346289' version='3' lat='52.8914858' lon='8.4281925' />
39 <node id='1133854864' version='2' lat='52.8924889' lon='8.4300422' />
40 <node id='1133854897' version='4' lat='52.8930884' lon='8.433848' />
41 <node id='1133854908' version='3' lat='52.8927447' lon='8.4306268' />
42 <node id='1133854931' version='3' lat='52.8925843' lon='8.4307354' />
43 <node id='1168240918' version='2' lat='52.8946236' lon='8.4320619' />
44 <node id='1227909460' version='3' lat='52.8923367' lon='8.4297234' />
45 <node id='1227909479' version='2' lat='52.892313' lon='8.4308154' />
46 <node id='1577447735' version='1' lat='52.8892172' lon='8.4331186' />
47 <node id='1601720771' version='1' lat='52.8895817' lon='8.4328553' />
48 <node id='1601721365' version='1' lat='52.8912922' lon='8.4313004' />
49 <node id='1601722162' version='1' lat='52.8924023' lon='8.4307688' />
50 <node id='1601722860' version='2' lat='52.8930766' lon='8.4325158' />
51 <node id='1601722886' version='2' lat='52.8931176' lon='8.4327778' />
52 <node id='1601722905' version='2' lat='52.89313' lon='8.4335832' />
53 <node id='1601722913' version='2' lat='52.8931452' lon='8.4333054' />
54 <node id='1601723000' version='1' lat='52.8932146' lon='8.4306242' />
55 <node id='1601723432' version='1' lat='52.893986' lon='8.43134' />
56 <node id='1601723541' version='1' lat='52.894126' lon='8.4315038' />
57 <node id='1601723720' version='1' lat='52.8943366' lon='8.431761' />
58 <node id='1601723784' version='1' lat='52.8945035' lon='8.4319646' />
59 <node id='2310189579' version='1' lat='52.8924511' lon='8.4299149' />
60 <node id='2310189580' version='3' lat='52.8926389' lon='8.4307568' />
61 <node id='2440942588' version='2' lat='52.8924465' lon='8.4307308' />
62 <node id='2440942594' version='1' lat='52.89254' lon='8.4302435' />
63 <node id='2440942604' version='1' lat='52.8928214' lon='8.4304945' />
64 <node id='2507291974' version='1' lat='52.8901024' lon='8.432352' />
65 <node id='2517859485' version='1' lat='52.8912381' lon='8.4277637' />
66 <node id='3625401978' version='1' lat='52.8925607' lon='8.4307081' />
67 <node id='3625401979' version='1' lat='52.8926704' lon='8.4303894' />
68 <node id='3625401980' version='1' lat='52.8925521' lon='8.430444' />
69 <node id='3625401981' version='1' lat='52.8926046' lon='8.4303887' />
70 <node id='3625401982' version='1' lat='52.8927331' lon='8.4304696' />
71 <node id='5504817312' version='1' lat='52.8926807' lon='8.4307243' />
72 <way id='-104550'>
73 <nd ref='73227374' />
74 <nd ref='77636315' />
75 <nd ref='21658035' />
76 <nd ref='3625401978' />
77 <nd ref='1133854931' />
78 <nd ref='2310189580' />
79 <nd ref='5504817312' />
80 <nd ref='305492181' />
81 <nd ref='1133854908' />
82 <tag k='converted_by' v='Track2osm' />
83 <tag k='highway' v='tertiary' />
84 <tag k='junction' v='roundabout' />
85 <tag k='maxspeed' v='50' />
86 <tag k='name' v='Visbeker Straße' />
87 <tag k='oneway' v='yes' />
88 <tag k='ref' v='K 248' />
89 </way>
90 <way id='8325782' version='14'>
91 <nd ref='1133854908' />
92 <nd ref='77636748' />
93 <nd ref='3625401982' />
94 <nd ref='77636749' />
95 <nd ref='3625401979' />
96 <nd ref='77636750' />
97 <nd ref='3625401981' />
98 <nd ref='21657940' />
99 <nd ref='3625401980' />
100 <nd ref='73227374' />
101 <tag k='converted_by' v='Track2osm' />
102 <tag k='highway' v='tertiary' />
103 <tag k='junction' v='roundabout' />
104 <tag k='maxspeed' v='50' />
105 <tag k='name' v='Visbeker Straße' />
106 <tag k='oneway' v='yes' />
107 <tag k='ref' v='K 248' />
108 </way>
109 <way id='9703493' version='16'>
110 <nd ref='76478545' />
111 <nd ref='1168240918' />
112 <nd ref='1601723784' />
113 <nd ref='1601723720' />
114 <nd ref='78037253' />
115 <nd ref='1601723541' />
116 <nd ref='1601723432' />
117 <nd ref='105304730' />
118 <nd ref='1601723000' />
119 <nd ref='76474542' />
120 <nd ref='76474543' />
121 <nd ref='2440942604' />
122 <nd ref='77636748' />
123 <tag k='highway' v='tertiary' />
124 <tag k='maxspeed' v='50' />
125 <tag k='name' v='Visbeker Straße' />
126 </way>
127 <way id='10611560' version='21'>
128 <nd ref='21658035' />
129 <nd ref='2440942588' />
130 <nd ref='1601722162' />
131 <nd ref='1227909479' />
132 <nd ref='305492179' />
133 <nd ref='305492177' />
134 <nd ref='1601721365' />
135 <nd ref='92811392' />
136 <nd ref='92811394' />
137 <nd ref='2507291974' />
138 <nd ref='1601720771' />
139 <nd ref='92811395' />
140 <nd ref='1577447735' />
141 <nd ref='305468587' />
142 <tag k='highway' v='unclassified' />
143 <tag k='maxspeed' v='50' />
144 <tag k='name' v='Goldenstedter Straße' />
145 <tag k='old_ref' v='L 882' />
146 <tag k='surface' v='asphalt' />
147 </way>
148 <way id='27822921' version='11'>
149 <nd ref='5504817312' />
150 <nd ref='1601722860' />
151 <nd ref='1601722886' />
152 <nd ref='21658081' />
153 <nd ref='1601722913' />
154 <nd ref='1601722905' />
155 <nd ref='1133854897' />
156 <nd ref='76465657' />
157 <tag k='converted_by' v='Track2osm' />
158 <tag k='highway' v='tertiary' />
159 <tag k='maxspeed' v='50' />
160 <tag k='name' v='Feldstraße' />
161 <tag k='ref' v='K 248' />
162 </way>
163 <way id='495863846' version='1'>
164 <nd ref='81224584' />
165 <nd ref='2517859485' />
166 <nd ref='82466180' />
167 <nd ref='307388519' />
168 <nd ref='440346289' />
169 <nd ref='21658036' />
170 <nd ref='1227909460' />
171 <nd ref='2310189579' />
172 <nd ref='1133854864' />
173 <nd ref='2440942594' />
174 <nd ref='21657940' />
175 <tag k='highway' v='tertiary' />
176 <tag k='maxspeed' v='50' />
177 <tag k='name' v='Visbeker Straße' />
178 <tag k='old_ref' v='L 837' />
179 <tag k='ref' v='K 248' />
180 </way>
181</osm>
Note: See TracBrowser for help on using the repository browser.