proj_nif - a simple Erlang NIF wrapper for the proj C library

https://hex.pm/packages/proj_nif

Requirements

You need Proj (9.1.0) and Erlang. The attached default.nix file contains a Nix definition to make your dev experience simpler.

Build

$ rebar3 compile

Shell

$ rebar3 shell

Inside the shell you can run test code with:

c(test).
test:run().

This should run without errors.

Elixir

There is also possibility to build an Elixir NIF. Just run

$ mix compile

and the priv/lib/libproj_nif_ex.so file will be generated. The module's name is Elixir.ProjNif.

You can run the sample inside Elixir repl (iex -S mix) as follows:

c "test.exs"
ProjNif.Test.run()