Skip to content
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

New crates.io release #20

Open
dabreegster opened this issue Jan 18, 2024 · 3 comments
Open

New crates.io release #20

dabreegster opened this issue Jan 18, 2024 · 3 comments

Comments

@dabreegster
Copy link

https://docs.rs/lonlat_bng/latest/lonlat_bng/ and crates.io point to 0.3.8, which is ancient! I actually thought this crate was broken (valid inputs to convert_osgb36_to_ll all failed), but it's working wonderfully when pinning to git. For anyone just doing cargo add lonlat_bng, a new release would be helpful! Thanks for this crate and saving me a GDAL dependency, by the way :)

@urschrei
Copy link
Owner

I can't! The crate relies on https://github.com/urschrei/ostn15_phf, which uses a 43 MB grid shift file, which is too big for crates.io, so it can't be published and has to be used as a git dependency.

Any ideas gratefully received of course.

@dabreegster
Copy link
Author

Ooh, that explains it. I don't have ideas that would keep the crate hermetic. (Hosting the data elsewhere and lazily pulling it in would suddenly introduce a dependency on the network at runtime, and require stable hosting somewhere.)

Worth keeping the issue open for the next person who gets confused and winds up here?

@urschrei
Copy link
Owner

An alternative is using proj and enabling its network feature, which enables the use of downloaded grid shift files: the OSTN15 NTv2 grid shift is definitely available. That may not be an option for you if you need to build your crate as WASM. In that case you should talk to Thomas about using the OSTN15 NTv2 grid shift file in the geodesy crate: it has NTv2 support and can be compiled to wasm.

But yes, I'll keep this open.

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

No branches or pull requests

2 participants