source: josm/trunk/test/data/regress/20325/invalid-new-upldate.osm@ 17429

Last change on this file since 17429 was 17429, checked in by GerdP, 3 years ago

fix #20325: Update Multipolygon removes tags instead of moving them to relation

  • rewrite handling of update multipolygon cases
  • let removeTagsFromWaysIfNeeded() check if getDataset() returns null instead of checking isNew(). I assume it was always meant to work like this. JoinAreasAction works fine with that and I hope no plugin relies on the old behaviour.
  • add regression unit test and more unit tests to improve coverage
File size: 1.0 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<osm version='0.6' generator='JOSM'>
3 <node id='-103646' action='modify' visible='true' lat='52.91023897279' lon='8.34637604497' />
4 <node id='-103647' action='modify' visible='true' lat='52.91083488589' lon='8.37107971528' />
5 <node id='-103648' action='modify' visible='true' lat='52.90014164684' lon='8.37178889646' />
6 <node id='-103649' action='modify' visible='true' lat='52.89954558664' lon='8.34708522614' />
7 <node id='-103652' action='modify' visible='true' lat='52.91023897279' lon='8.34637604497' />
8 <way id='-106707' action='modify' visible='true'>
9 <nd ref='-103647' />
10 <nd ref='-103648' />
11 <nd ref='-103649' />
12 <nd ref='-103652' />
13 </way>
14 <way id='-106721' action='modify' visible='true'>
15 <nd ref='-103646' />
16 <nd ref='-103647' />
17 </way>
18 <relation id='-99791' action='modify' visible='true'>
19 <member type='way' ref='-106707' role='outer' />
20 <tag k='building' v='yes' />
21 <tag k='type' v='multipolygon' />
22 </relation>
23</osm>
Note: See TracBrowser for help on using the repository browser.