Hi Holger,<br><br>I don't have much net connectivity at the moment, and don't have JOSM installed.<br><br>I'm assuming that osmosis is creating node id 289490930 in such a way that JOSM doesn't like it.<br>
<br>Can you provide the xml element for node with id=289490930 from both the original unterfraken.osm.bz2 file, and the osmosis modified files? Then we can compare the two and try to figure out what might be causing the problem.<br>
<br>Brett<br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 9:06 AM, Holger Blum <span dir="ltr"><<a href="mailto:holbi@gmx.net">holbi@gmx.net</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;">
Hello!<br>
<br>
I want to extract all data within a polygon out of an .osm file. Some<br>
time ago I've already used an older version of osmosis for this task,<br>
but this was with API 0.5 which obviously doens't work anymore, so I've<br>
downloaded osmosis 0.32.<br>
<br>
The processing was successful, but I'm not able to open the generated<br>
file in JOSM.<br>
<br>
The exact proceeding was:<br>
* download the data<br>
<a href="http://download.geofabrik.de/osm/europe/germany/bayern/unterfranken.osm.bz2" target="_blank">http://download.geofabrik.de/osm/europe/germany/bayern/unterfranken.osm.bz2</a><br>
<br>
* edit a simple polygon file<br>
wue_rect.poly<br>
1<br>
9.90 49.75<br>
9.90 49.80<br>
9.99 49.80<br>
9.99 49.75<br>
9.90 49.75<br>
END<br>
END<br>
<br>
* run osmosis<br>
D:\GPS\osmosis-0.32\bin>osmosis.bat --read-xml file="unterfranken.osm"<br>
--bounding-polygon file="wue_rect.poly" --write-xml file="wue_rect_ufr.osm"<br>
<br>
* open the file in JOSM<br>
<br>
The error message in JOSM is<br>
"org.openstreetmap.josm.io.IllegalDataException:<br>
org.openstreetmap.josm.data.osm.<br>
DataIntegrityProblemException: Objekt {Node id=289490930 version=0 IV }<br>
kann nicht zum Datensatz hinzugef³gt werden, weil es bereits im<br>
Datensatz enthalten ist"<br>
<br>
I've tried with different .osm files, different polygons in this area<br>
and both JOSM latest and stable, it always fails. The original .osm file<br>
loads without error, so I guess that there's something wrong with the<br>
processing in osmosis.<br>
<br>
Does anyone have an idea what could be wrong? The files from geofabrik<br>
are still made with 0.31 and are ok, but I wasn't able to make this<br>
version work on my XP to try it myself.<br>
Extracts of other areas do work, for example an extract of the data<br>
within a polygon based on relation 162360. The main difference is that<br>
this is a rural area with lower node density and simpler tagging.<br>
<br>
I think this behaviour should be easily reproduceable, if not I'd<br>
willingly supply my files for analysis.<br>
<br>
<br>
Holger<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>
</blockquote></div><br>