[osmosis-dev] duplication of nodes on apply-change

Maxim Dubinin sim at gis-lab.info
Sun Nov 15 23:24:25 GMT 2009


Hi,

I'm trying to figure out what is wrong with applying changes using
osmosis (0.31.2).

So for example I have such piece info in source OSM XML:

<node id="244256" version="3" timestamp="2008-12-24T21:46:45Z"
uid="69864" user="Ivan Komarov" changeset="585532" lat="59.8522186" lon="30.3377485"/> 

The change file, that I apply (20091112-20091113.osc.gz) contains
some mods for this node:

<node id="244256" version="4" timestamp="2009-11-12T20:17:19Z"
uid="143266" user="Sergey Astakhov" changeset="3101326" lat="59.8522186" lon="30.3377485"> 
       <tag k="highway" v="traffic_signals"/>
</node>

But after I do:
osmosis --read-xml-change file="data/updates/20091112-20091113.osc.gz"
--read-xml file="data/rus.osm" --apply-change --write-xml file="data/rus-new.osm"

I'm getting two versions of the same node in the output:

<node id="244256" version="3" timestamp="2008-12-24T21:46:45Z"
uid="69864" user="Ivan Komarov" changeset="585532" lat="59.8522186" lon="30.3377485"/> 
<node id="244256" version="4" timestamp="2009-11-12T20:17:19Z"
uid="143266" user="Sergey Astakhov" changeset="3101326" lat="59.8522186" lon="30.3377485"> 
    <tag k="highway" v="traffic_signals"/>
 </node>

Is this duplication erroneus or am I missing something obvious?

Maxim






More information about the osmosis-dev mailing list