[osmosis-dev] Problem opening .osm files in JOSM after osmosis-0.32 processing
Holger Blum
holbi at gmx.net
Sun Dec 27 22:06:49 GMT 2009
Hello!
I want to extract all data within a polygon out of an .osm file. Some
time ago I've already used an older version of osmosis for this task,
but this was with API 0.5 which obviously doens't work anymore, so I've
downloaded osmosis 0.32.
The processing was successful, but I'm not able to open the generated
file in JOSM.
The exact proceeding was:
* download the data
http://download.geofabrik.de/osm/europe/germany/bayern/unterfranken.osm.bz2
* edit a simple polygon file
wue_rect.poly
1
9.90 49.75
9.90 49.80
9.99 49.80
9.99 49.75
9.90 49.75
END
END
* run osmosis
D:\GPS\osmosis-0.32\bin>osmosis.bat --read-xml file="unterfranken.osm"
--bounding-polygon file="wue_rect.poly" --write-xml file="wue_rect_ufr.osm"
* open the file in JOSM
The error message in JOSM is
"org.openstreetmap.josm.io.IllegalDataException:
org.openstreetmap.josm.data.osm.
DataIntegrityProblemException: Objekt {Node id=289490930 version=0 IV }
kann nicht zum Datensatz hinzugef³gt werden, weil es bereits im
Datensatz enthalten ist"
I've tried with different .osm files, different polygons in this area
and both JOSM latest and stable, it always fails. The original .osm file
loads without error, so I guess that there's something wrong with the
processing in osmosis.
Does anyone have an idea what could be wrong? The files from geofabrik
are still made with 0.31 and are ok, but I wasn't able to make this
version work on my XP to try it myself.
Extracts of other areas do work, for example an extract of the data
within a polygon based on relation 162360. The main difference is that
this is a rural area with lower node density and simpler tagging.
I think this behaviour should be easily reproduceable, if not I'd
willingly supply my files for analysis.
Holger
More information about the osmosis-dev
mailing list