[OSM-dev] Autocorrectable data inconsistency

Jochen Topf jochen at remote.org
Tue Aug 19 08:24:19 BST 2008


On Mon, Aug 18, 2008 at 11:17:53PM +0200, Joachim Zobel wrote:
> Am Montag, den 18.08.2008, 13:30 +0200 schrieb "Marc Schütz":
> > Is there actually a valid use case for having the same node multiple
> > times in a row?
> 
> I don't see any. 
> 
> I could write a script to korrect the existing ones. Do the sequence_ids
> have to be in sequence (which means the ones above need to be shifted
> down) or does a simple DELETE per dupe do it.

All changes should be done through the API. Do changes on the database
directly only leads to inconsistencies. The API does not expose the
sequence number, so the order alone is fine.

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298





More information about the dev mailing list