[OSM-dev] deleting nodes/ways that are members of relations

bvh bvh-osm at irule.be
Mon May 12 06:54:08 BST 2008

On Sun, May 11, 2008 at 09:55:22PM -0400, Christopher Schmidt wrote:
> It looks like the main API and Potlatch have different ideas of what
> should be done when a node is deleted which is a member of a way or
> relation. Potlatch deletes the node from any way or relation that it is
> a member of: the main API just rejects the edit.
> To consolidate these a bit, might it make sense to take a 'force
> deletion' parameter in the API which says 'delete this node from any way
> which it is a member of and remove it from any relations which it is a
> member of'? This would likely be added as a parameter to the 'delete'
> method of the node_controller, and then added as a parameter to the
> 'delete_with_history' api call... 
> I think that if this happened, the 'deleteitemrelations' code in
> amf_controller could be migrated away from...
> Thoughts?

What happens if this is the last node of the relationship or the
second to last of the way? Does the delete cascade?

cu bart

More information about the dev mailing list