[OSM-dev] Update osm2pgsql patch mode

Brett Henderson brett at bretth.com
Mon Sep 1 00:21:27 BST 2008


On Mon, Sep 1, 2008 at 6:50 AM, Martijn van Oosterhout <kleptog at gmail.com>wrote:

> Umm, yeah. There's that. The way I solved it was with the patch below,
> which is a gross hack but it works. Basically it turns every create
> into a modify so it deletes any conflicting rows before inserting. It
> may be the only way, but I'm still thinking on it...
>

FWIW, that's exactly what osmosis does.  It treats create and modify
identically when applying changes.  I go to a fair bit of trouble when
creating a changeset file to get the create versus modify correct (including
cases where an entity is deleted and re-created) but it all falls over when
applying changes onto a planet file where you have to overlap a time period
to get a consistent snapshot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080901/4ae97f7f/attachment.html>


More information about the dev mailing list