[OSM-talk] Offline editing during downtime
Russ Nelson
russ at cloudmade.com
Fri Apr 17 19:16:17 BST 2009
On Apr 17, 2009, at 1:46 PM, Iván Sánchez Ortega wrote:
> El Viernes, 17 de Abril de 2009, Frederik Ramm escribió:
>> Hi,
>>
>> MP wrote:
>>> I don't think that is so easy. To avoid conflicts, when replacing
>>> node/way/relation that is on server with newer version, server sends
>>> internal ID/revision number of the way and you have to pass this
>>> back
>>
>> Martin is right.
>
> Hhhmm. What about just setting the revision # to zero on all things
> coming
> from a 0.5 file? It could be done with a regexp or something.
Yes, Martin is right.
Cannot parse valid node from xml string <node id="26374527"
action="modify" timestamp="2007-11-30T04:11:44Z" user="kresp0"
visible="true" changeset="339" lat="51.5006728" lon="-0.1244324">
<tag k="tourism" v="attraction"/>
<tag k="name" v="Big Ben"/>
<tag k="clock" v="big"/>
<tag k="created_by" v="Potlatch 0.5d"/>
</node>. Version is required when updating
BUT if you change all "<(node|way|relation) " to "<$1 version='1' "
and change the version number, it seems to work:
http://mysql.dev.openstreetmap.org/browse/changeset/340
Will go off to lunch and write python program on return, because all
programs must be written in Python, or REwritten in Python if
necessary. We are the Borguido, we will assimilate you.
--
Russ Nelson - http://community.cloudmade.com/blog - http://wiki.openstreetmap.org/wiki/User:RussNelson
russ at cloudmade.com - Twitter: Russ_OSM - http://openstreetmap.org/user/RussNelson
More information about the talk
mailing list