Closed hackergrrl closed 6 years ago
A couple of solutions:
osm-p2p-server
to perform deletions on orphan nodes when ways are modified.I'm partial to (2). It doesn't fix existing data, but we can do manual deletions on those in Mapeo.
It looks like iD Editor already does (2) -- thanks for pointing this out @gmaclennan. The only way I could see this scenario happening then is when there's a fork on a node member of a way: one is a modification and one is a deletion. The way that does the deletion "wins" the defork sort and gets rendered, and the node modification "wins" and gets rendered, resulting in a "ghost point". This is a bigger issue, which can be fixed with https://github.com/digidem/osm-p2p-db/issues/49.
Closing this PR for now. I think the best we can do for Mapeo users is to advise them to manually delete ghost points that occur. Thanks to https://github.com/digidem/osm-p2p-db/pull/53 deletions shouldn't be ignored any more.
This scenario is pretty easy to set up:
So far this PR only reproduces the issue. Solving this is tougher, since this case looks almost identical to the case where there is simply a standalone node that no way references!