Hi Simon,<br><br>The duplicate node entry could be caused by a couple of reasons:<br><br>1. There were bugs in some builds of Osmosis 0.31.1.  Is there a reason you're using 0.31.1?  The latest stable version is 0.32.  You can get it here:<br>
<a href="http://wiki.openstreetmap.org/index.php/Osmosis#Latest_Stable_Version">http://wiki.openstreetmap.org/index.php/Osmosis#Latest_Stable_Version</a><br><br>2. Are you using replication diffs instead of daily diffs?  These diffs can contain multiple version of the same entity because they are full history diffs.  The delta style daily diffs are more appropriate for patching osm files.<br>
<br>Brett<br><br><div class="gmail_quote">On Sun, Jan 10, 2010 at 7:54 PM, Simon Nuttall <span dir="ltr"><<a href="mailto:simon.nuttall@gmail.com">simon.nuttall@gmail.com</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;">
It was suggested that I try to sort the nodes first, so I tried that using:<br>
<div class="im"><br>
osmosis -v 100 --read-xml data/osm/downloads/great_britain.osm<br>
enableDateParsing=no --bounding-polygon file="import/fz_cambridge.txt"<br>
</div> --sort-0.6 --write-xml data/osm/downloads/great_britain.sorted.osm<br>
<br>
but it made no difference to the order of the appearance of these two nodes:<br>
<br>
  <node id="620823" version="9" timestamp="2010-01-10T00:42:28Z"<br>
<div class="im">uid="215789" user="smncrsk" changeset="3560454" lat="52.1920125"<br>
lon="0.1884885"/><br>
</div>  <node id="620823" version="10" timestamp="2010-01-10T00:42:28Z"<br>
<div class="im">uid="215789" user="smncrsk" changeset="3564864" lat="52.191996"<br>
lon="0.1884762"/><br>
<br>
</div>which seem to be causing the problem, with the same error report<br>
previously reported:<br>
<div class="im"><br>
SEVERE: Thread for task 1-read-xml failed<br>
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Pipeline<br>
entities are not sorted, previous entity type=Node, id=620823,<br>
version=9 current entity type=Node, id=620823, version=10.<br>
        at org.openstreetmap.osmosis.core.merge.v0_6.impl.SortedEntityPipeValidator.process(SortedEntityPipeValidator.java:47)<br>
<br>
</div><div><div></div><div class="h5">Simon<br></div></div></blockquote></div><br>