[OSM-dev] API Update - JOSM Update Required

Tom Hughes tom at compton.nu
Wed Jun 20 08:46:17 BST 2007


In message <4678BC19.7050405 at SSpaeth.de>
        Sebastian Spaeth <Sebastian at sspaeth.de> wrote:

> Care to elaborate on what exactly has changed? Is there new API
> implemented or have calls changed? Which? Is this documented in the Wiki
> under the .4 spec?

There are no changes to the API as such, it is just that the API now
polices the validity of the changes it is asked to make more carefully.

Specifically, the following things used to be allowed:

  - Deleting a node which was in use by a segment

  - Deleting a segment which was in use by a way

  - Creating duplicate segments by setting an ID value for the
    segment in the XML when calling create

  - Changing an existing segment to use a deleted node

  - Changing an existing way to use a deleted segment, or indeed
    a segment which simply did not exist

  - Creating a way with no segments, or changing an existing way
    to have no segments

All of the above will now give "412 Precondition Failed" if they are
tried.

The problem with JOSM was that if you deleted a way and all it's nodes
and segments then JOSM would try and upload the delete of the nodes
first, then the segments and then the way. Obviously that will no
longer work.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list