[Tile-serving] [osm2pgsql-dev/osm2pgsql] How can I figure out exactly what ways (roads, tracks) have changed based on an OSC OsmChange file? (Discussion #2144)
Paul Norman
notifications at github.com
Thu Mar 21 09:10:46 UTC 2024
The transform functions are called for each object that was changed as a result of the OSC file, not just the objects that are changed in the OSC file.
One issue you might have is objects that are processed are **potentially** changed and may have stayed the same. It also calls the functions on the new/modified object, not on the change itself. Deletes never hit the transforms, and a modify is a delete/create so it looks exactly like a create.
You could also consider triggers on your feature tables but you'll have similar issues with modifies being create/delete
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2144#discussioncomment-8862941
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2144/comments/8862941 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240321/35ff79e0/attachment.htm>
More information about the Tile-serving
mailing list