Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Dec 16, 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.

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.
@lonvia lonvia merged commit 9b740c1 into osm2pgsql-dev:master Jan 2, 2025
24 checks passed
@joto joto deleted the check-flatnode-format branch January 3, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants