[osmosis-dev] Single node ways
Stefan Große Pawig
osm at stegropa.de
Fri Nov 16 17:14:42 GMT 2012
Hi Toby,
Toby Murray <toby.murray at gmail.com> writes:
> So first of all, there is an inconsistency between how the load
> process and the diff process handles these ways. But is there any
> other way to handle this besides dropping them completely? There are a
> couple of uses of the pgnsapshot schema that assume that it is a
> lossless way of storing OSM data and as far as I know, it is - except
> for this one exception.
At least in the old times before the redaction period, there was a bot
(I think it was the xybot) that periodically deleted these invalid ways
from the database. In those days, the "lossless-ness" was not a strong
factor, since the invalid ways would disappear after some updates
anyway.
> While single node ways are definitely a bug,
> they happen with unfortunate regularity, mostly due to bugs in editing
> software. Would it be acceptable to add in a phantom node 3cm away
> from the first oneor something, just while building the geometry? I
> think that happens in SQL while applying diffs which would make it
> more difficult since you don't actually want to insert nodes that
> don't exist... Thoughts?
At least for my purposes, I would prefer that these invalid ways do not
enter the database at all. Either the main DB, using more API checks,
or the local DB, using checks during the diff import. The latter
feature could be controlled by import options (similar to what you
proposed for the initial import).
Stefan
More information about the osmosis-dev
mailing list