<div class="gmail_quote">In an attempt to fix this I have done the following:<br>* Rolled back EntityByTypeThenIdComparator to the previous behaviour of only checking type then id.<br>* Created a new EntityByTypeThenIdThenVersion comparator which (obviously :-) includes version as part of the checking.<br>
* Updated ChangeMerger (--merge-change) to use the new version inclusive comparison.<br>* Updated SortedChangePipeValidator used by ChangeMerger (--merge-change) and ChangeSimplifier (--simplify-change) to use the new version inclusive comparison.<br>
* Created a new --simplify-change task that reduces full history diffs to delta diffs to allow old tasks relying on single changes per entity to continue to work.<br><br>At some point I need to go through all change processing tasks and check to see if they need updates to support full history diffs but I'm not sure when I'll get around to it.<br>
<br>If anybody sees any problems with the changes I've made please let me know.<br><br>Brett<br><br>2009/11/18 Maxim Dubinin <span dir="ltr"><<a href="mailto:sim@gis-lab.info">sim@gis-lab.info</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for explanation, Frederik.<br>
I confirm that it was indeed the problem and rolling back to rev18121<br>
fixed the issue. I also note that 0.31.3 still has this bug.<br>
<br>
Maxim<br>
<br>
Вы писали 16 ноября 2009 г., 15:11:06:<br>
<br>
FR> Hi,<br>
<div class="im"><br>
FR> Maxim Dubinin wrote:<br>
>> MD> But after I do:<br>
>> MD> osmosis --read-xml-change file="data/updates/20091112-20091113.osc.gz"<br>
>> MD> --read-xml file="data/rus.osm" --apply-change --write-xml file="data/rus-new.osm"<br>
>><br>
>> MD> I'm getting two versions of the same node in the output:<br>
<br>
</div>FR> Is it possible that I am resposible for this because I recently changed<br>
FR> the sorting function to treat something with version=x+1 as "larger<br>
FR> than" something with version=x, instead of "equal"?<br>
<br>
FR> (SVN r18230, change to EntityByTypeThenIdComparator...)<br>
<br>
FR> Bye<br>
FR> Frederik<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
osmosis-dev mailing list<br>
<a href="mailto:osmosis-dev@openstreetmap.org">osmosis-dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/osmosis-dev" target="_blank">http://lists.openstreetmap.org/listinfo/osmosis-dev</a><br>
</div></div></blockquote></div><br>