You need to check both of your OSM files downloaded from XAPI.  The first
one contains the full relation details as you expect.  The second one
contains an empty relation.  Both have the same version number.

The Osmosis *--merge* task is intentionally simple and doesn't alter
relation contents in any way.  In your case it is seeing that the relation
exists in both inputs, it determines that both have the same version number,
and picks the second one.  The second one is written to the result file.

The real question to ask is "Why does XAPI return an empty relation for my
second query?".  But that will have to be asked on the dev mailing list ;-)

Brett

On Thu, Mar 11, 2010 at 6:22 AM, Jan Tappenbeck <o...@tappenbeck.net> wrote:

> hi !
> i have following statement to download NODES for memorial-elements:
>
>
> http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]
>
>
> on the other way i have following statement for download the main-relation
> of this categorie:
>
> http://xapi.openstreetmap.org/api/0.6/relation[name=Stolpersteine][bbox=5.5,47.4,15.0,55.3]
>
> in the next moment i want to merge the files, and some other, with OSMOSIS.
> because there are some NODES in the first and the secound download-files.
>
> in the new file only this line exists for the relation
> <relation id="407359" version="75"
> timestamp="2010-03-05T21:26:43Z"uid="32786" user="Netzwolf"
> changeset="4044847"/>
>
> this is the osmosis-statement and the message:
>
> OSMOSIS_command: D:\DATEN\JAN\openstreetmap\osmosis\bin\osmosis.bat
>  --read-xml
> xapi4osm_node_1.osm --sort-0.6 --read-xml xapi4osm_relation_1.osm
> --sort-0.6 --r
> ead-xml xapi4osm_node_2.osm --sort-0.6 --read-xml xapi4osm_relation_2.osm
> --sort
> -0.6 --merge --merge --merge  --write-xml
> D:\DATEN\JAN\openstreetmap\osmosis\sto
> lpersteine.osm
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.32
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline complete.
> 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Total execution time: 468 milliseconds.
>
> did anybody now why the relation in the merge-file is only one line and so
> uncomplete ???
>
> regards Jan :-)
>
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
_______________________________________________
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to