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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to