<div class="gmail_quote">On Fri, Jan 22, 2010 at 8:54 AM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<div class="im"><br>
<br>
Brett Henderson wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you use the latest SVN version it will detect if multiple versions of an entity exist and throw an error in the --apply-change task. I'll try to do another official release of Osmosis over the next day or two with this change included.<br>
</blockquote>
<br></div>
Just for laughs - and wonder if you can come up with something better? - this is what I did to remove the duplicate objects from an existing OSM file named "faulty.osm":<br>
<br>
echo "<osm></osm>" > empty.osm<br>
<br>
osmosis --rx faulty.osm --rx empty.osm --dc --sort-change-0.6 --simc --wxc good.osc<br>
<br>
osmosis --rxc good.osc --rx empty.osm --ac --wx good.osm<br>
<br>
(The two osmosis steps could be written as one but that would probably make it more confusing.)</blockquote><div><br>I was wondering how you fixed it. That's neat. Do you need the --sort-change-0.6? You probably do, but I don't know what order you end up with using --apply-change with full history diffs.<br>
<br>Perhaps I should create a --read-zero task. An empty osm file is often handy. It would avoid having to create empty.osm files like that.<br><br>Brett<br></div></div><br>