[Tile-serving] [osm2pgsql-dev/osm2pgsql] New nodes and ways can't have existing parents (PR #2183)
Jochen Topf
notifications at github.com
Mon May 13 20:02:37 UTC 2024
New nodes or ways (ie with version=1) can't have parent ways or relations. So we don't have to add them to the list of "changed nodes" or "changed ways" to trigger re-processing of changed parents. This will save us a whole lot of effort looking for parents that are never there.
Note that we are checking for version != 1. In the (unlikely) case that there are no versions in the input file (making version == 0), everything will work as before.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2183
-- Commit Summary --
* New nodes and ways can't have existing parents
-- File Changes --
M src/osmdata.cpp (18)
M tests/bdd/flex/way-change.feature (22)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2183.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2183.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2183
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2183 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240513/c95aa488/attachment.htm>
More information about the Tile-serving
mailing list