Installation
The R and Python packages can be installed from CRAN and PyPI, respectively. If these repositories do not provide a binary for your platform, then you may also need to install the dependencies listed in Compiling below.
Another installation option is to use conda. There is both an R conda package and a python conda package available in the conda-forge channel.
To use the command line interface, you will likely need to compile it yourself.
Compiling
exactextract requires the following:
It can be built as follows on Linux as follows:
bash
git clone https://github.com/isciences/exactextract
cd exactextract
mkdir cmake-build-release
cd cmake-build-release
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
The following options are available to control what gets compiled. They are each ON by default.
- BUILD_BENCHMARKSwill build performance tests
- BUILD_CLIwill build the command-line interface (requires GDAL)
- BUILD_DOCwill build the doxygen documentation if doxygen is available
- BUILD_PYTHONwill build Python bindings (requires pybind11)
- BUILD_TESTwill build the catch_test suite
To build just the library and test suite, you can use these options as follows to turn off the CLI (which means GDAL isn’t required) and disable the documentation build. The tests and library are built, the tests run, and the library installed if the tests were run successfully:
git clone https://github.com/isciences/exactextract
cd exactextract
mkdir cmake-build-release
cd cmake-build-release
cmake -DBUILD_CLI:=OFF -DBUILD_DOC:=OFF -DCMAKE_BUILD_TYPE=Release ..
make
./test/catch_tests && sudo make install