Opened 14 years ago
Last modified 4 years ago
#5746 new enhancement
Implement "if-unused" osmChange API feature for outside BBOX nodes
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | if-unused API diff API0.6 node delete | Cc: |
Description (last modified by )
API 0.6 has been extended to support a "if-unused" delete node attribute on osmChange diff uploads.
Introduced here: http://git.openstreetmap.org/rails.git/commitdiff/2d937f94d55c0b8f94b024f579a78271d85fbe9a
It would make sense to start using this for nodes which are deleted, instead of prompting user when they attempt to delete a node outside known BBOX.
Attachments (0)
Change History (9)
comment:1 by , 14 years ago
follow-up: 3 comment:2 by , 14 years ago
It is probably not good to use this for *all* nodes that are deleted because this means that editing conflicts go unnoticed. And it is probably not good either to drop the "you are deleting stuff outside the downloaded area" message either because doing so is usually not a good thing - some things might rely on what you're deleting without actually using it, e.g. you delete a road for which someone else has made a corridor through a forest just outside your downloaded area - so you want to delete the road and let the corridor remain? etc.
comment:3 by , 11 years ago
Description: | modified (diff) |
---|
framm: We had talked a couple of weeks ago, do you have any further thoughts on this? I think it makes sense to do if-unused for all nodes outside the downloaded area
follow-up: 5 comment:4 by , 11 years ago
We have to be careful as framm already mentioned. Though I am sometimes annoyed about the stupid conflicts when just deleting nodes outside area which are no end nodes of any way.
Did not really understand what "if-unused" is really doing but if it checks for tags, membership, end node of way and not part of more than one remaining way, it would be save to use. Seems something similar was implemented.
We only need to take care of new objects.
Still a major task and I would prefer to get the defects about conflict detection fixed first.
follow-up: 6 comment:5 by , 11 years ago
Replying to skyper:
Did not really understand what "if-unused" is really doing
There is some documentation.
comment:6 by , 11 years ago
Replying to Don-vip:
Replying to skyper:
Did not really understand what "if-unused" is really doing
There is some documentation.
Thanks but if this method does not check for tags on the deleted nodes which is dangerous and overall it seems to be not very useful as conflict management should already handle any edge cases and the rest should be deletable anyway.
What I was looking for was a method which simply deletes the crossing node of two ways once one is deleted plus manages cases with more than two ways by keeping the node both without any new conflicts. Sure the four checks previously mentioned are needed.
comment:7 by , 11 years ago
Ok, we could benefit of less conflicts but leaving quite some unneeded nodes within the data. The problem is that "update data" only checks objects within download area and will not find these conflicts. You either have to manually download the area or you might get a lot of upload interruptions. I did not check if "update modified" checks delete nodes but I guess not.
comment:8 by , 11 years ago
The user deleting already knows if there are tags on the deleted nodes, they just don't know if they are referenced by another object. if-unused is equivalent to automatically resolving in favour of keeping.
comment:9 by , 4 years ago
This feature would still be nice to have! (he says, talking into the void)
Potlatch 2 now implements: http://trac.openstreetmap.org/changeset/24776