[osmosis-dev] Problem opening .osm files in JOSM after osmosis-0.32 processing

Brett Henderson brett at bretth.com
Wed Jan 6 02:01:03 GMT 2010


Hi Holger,

I don't have much net connectivity at the moment, and don't have JOSM
installed.

I'm assuming that osmosis is creating node id 289490930 in such a way that
JOSM doesn't like it.

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.

Brett

On Mon, Dec 28, 2009 at 9:06 AM, Holger Blum <holbi at gmx.net> wrote:

> 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
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20100106/c6059833/attachment.html>


More information about the osmosis-dev mailing list