[OSM-talk] OsmChange Files/Datasets.

simon at mungewell.org simon at mungewell.org
Tue Jun 10 03:50:58 BST 2008


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.





More information about the talk mailing list