The create/modify/delete "action" is applied at the node/way/relation 
level.  There is no way of applying changes at a tag level.  When 
osmosis receives a modified entity in the --apply-change task, it 
replaces the existing entity with the new one.

So in other words if you wish to add tags you need to include all 
existing tags in your modified entry.

[EMAIL PROTECTED] wrote:
> I've started looking at change sets to upload blocks of data (population
> figures in this case) and am a little confused.
>
> From the work I have done so far I can produce a change set such as
> ---
> $ cat population.osc
> <?xml version='1.0' standalone='no'?>
> <osmChange version='0.5' generator='nasty_script_hack'>
> <modify version='0.5' generator='nasty_script_hack'>
>   <node id='51971466' lat='49.485667' lon='-113.9502919' user='Mungewell'
> osmxapi:users='Mungewell' timestamp='2008-03-27T23:52:01Z'>
>     <tag k='name' v='Pincher Creek'/>
>     <tag k="place" v="town"/>
>     <tag k="population" v="3625"/>
>     <tag k="population_date" v="16-may-06"/>
>     <tag k='is_in' v='Alberta'/>
>   </node>
> </modify>
> </osmChange>
> ---
>
> However when I use Osmosis to apply this change set (to a local '.osm'
> file) it wipes out any of the already existing tags for this node, rather
> than just modifying/adding those tags which I specify.
>
> Is there some other way to apply the change set, or do I need to modify my
> script to include all the of the original tags for each node in the change
> file?
>
> Cheers,
> Simon.
>
>
> _______________________________________________
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>   


_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to