[Tile-serving] [osm2pgsql-dev/osm2pgsql] Check flat node file format for forwards compatibility (PR #2279)

Jochen Topf notifications at github.com
Mon Dec 16 15:21:45 UTC 2024


In a flat node file the first location is that of node id 0, which does not exist. So the first location must always be the undefined location, otherwise we might be looking at a different kind of file.

This adds a check for forwards compatibility. If and when we change the file format, we can use the first 8 bytes to differentiate the file formats.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2279

-- Commit Summary --

  * Check flat node file format for forwards compatibility

-- File Changes --

    M src/node-persistent-cache.cpp (9)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2279.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2279.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2279
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2279 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20241216/bead18b6/attachment.htm>


More information about the Tile-serving mailing list