Skip to content

Installed resources for Windows and Linux differs #2485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danme74 opened this issue Dec 13, 2020 · 3 comments
Closed

Installed resources for Windows and Linux differs #2485

danme74 opened this issue Dec 13, 2020 · 3 comments
Labels
Milestone

Comments

@danme74
Copy link

danme74 commented Dec 13, 2020

When building and installing Proj 7.2.0 on Windows and Linux, the following installed resources differs:

proj.db (differs)
deformation_model.schema.json (missing on Windows)
projjson.schema.json (missing on Windows)
triangulation.schema.json (missing on Windows)

Is this an issue?

The build and installation was not made the same day on Windows and Linux, so if any modification is made to the proj.db before installing it could certainly differ (e.g. update date/time).

In both cases, proj was built as a shared library.

On Windows, cmake was used and the "projsync", "curl" and "testing" features was disabled when building. On Linux, autogen, configure, make was used (built without curl).

@rouault
Copy link
Member

rouault commented Dec 13, 2020

The missing installed files was an error, now fixed.
Regarding the difference in proj.db, it might come perhaps from different SQLite versions used to generate it, or perhaps different lien endings between Linux and Windows that could affect multi-line content (like CREATE TABLE statements) in the DB. They shouldn't be significant.

@rouault rouault added this to the 7.2.1 milestone Dec 13, 2020
@danme74
Copy link
Author

danme74 commented Dec 13, 2020

Thanks!

FYI:
For both linux and windows I used the same sqlite, version 3.31.1 and it was built-in statically.
I got 159 binary differences in between the windows proj.db and the linux proj.db. Both files has the same size.

I looked into the first two, and attached some dumps with context here. Maybe it can give you some more information about the cause?
proj-db-diff.txt

@rouault
Copy link
Member

rouault commented Dec 14, 2020

I looked into the first two, and attached some dumps with context here. Maybe it can give you some more information about the cause?

Looks like subtle differences (on the least significant bit) in how the floating point numbers in data/sql/unit.sql end up being encoded in IEEE-754 64bit numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants