proj
proj copied to clipboard
Rust bindings for the latest stable release of PROJ
It's possible that libproj will return a null pointer instead of an actual error string. In this case we now return a specific error indicating this. Fixes #73
``` cargo test --features "bundled_proj" ``` ``` $ cargo test --features "bundled_proj" Compiling approx v0.3.2 Compiling proj v0.20.6 (/Users/coreyf/Desktop/dev/georust/proj) error: linking with `cc` failed: exit code: 1 | = note:...
the `.convert()` function needs an input type with a bound constraint on `Coord` and produce an output type with a bound constraint on `Coord`. However, the way it is defined...
For most people, pkg-config is a great option. But for when it's not, I think conventions exist for manually specifying environment variables. Something like: ``` PROJ_SYS_PROJ_INCLUDE_DIR=/path/to/my/proj/include PROJ_SYS_LIBRARY_PATH=/path/to/my/proj/lib cargo build ```...
> This function frees global resources (grids, cache of +init files). It should be called typically before process termination, and after having freed PJ and PJ_CONTEXT objects. > > -...
We use `proj_sys::proj_errno_string` in the `proj` crate. The `proj_sys::proj_errno_string` function can return a null pointer, but we don't handle that case currently. See this comment for context: https://github.com/georust/proj/pull/72/files#r574590647
`bindgen` accounts for the vast majority of the remaining deps for proj. Since they are build_dependencies they don't contribute to the size of the output binary, but it does take...
What is the status about `Send` and `Sync`? There is no explicit unimpl note, but due to the raw-pointers, it is also not auto-impled on `Proj`. Is it safe to...
This commit adds an optional dependency to libsqlite3-sys to provide a bundled version of libsqlite3 as well instead of relying on a system provided version.
This commit changes proj-sys to not depend on bindgen by default as that introduces a quite heavy build time dependency (libclang) which might not be there on all systems. Instead...