[OSM-talk] RFC: what are empty nodes and how should we use them?
Sebastian Klein
bastikln at googlemail.com
Mon Aug 16 11:44:52 BST 2010
Peter Körner wrote:
> Am 16.08.2010 02:50, schrieb Lennard:
>> On 16-8-2010 1:41, M∡rtin Koppenhoefer wrote:
>
>> We've had several cases today, where people came swooping in and deleted
>> nodes from an ongoing upload, where the ways hadn't been uploaded yet.
> So why are you uploading Nodes without ways?
>
> The POST /api/0.6/changeset/#id/upload call is atomic in a transaction.
> Why not split your upload into multiple OSC Parts and post thems via
> this call. That way no imcomplete data would be visible to other users
> at any time.
Yes, but JOSM has a chunked upload mode where it uses multiple
transactions for one upload.
This makes sense in in certain situations. E.g. you upload 20000 objects
and you get "precondition failed" on the last 100 of them. That would
mean:
(1) - upload 19899+i objects
(2) - upload is aborted by server -> get the server error
(3) - fix the problem (e.g. download way and fix it)
(4) - i++
(5) - goto (1)
If you have a slow connection, this is not acceptable.
Sebastian
More information about the talk
mailing list