Skip to main content

Installation

We recommend using prebuilt bindings if they are available for your programming language. Bindings for Python, JavaScript, PostgreSQL, Go, R, and DuckDB are available.

Package managers​

Using PyPI, run:

pip install terra-sa

Or using Conda:

conda config --add channels conda-forge
conda install terra-sa

Verify the installation:

import terra
cell = terra.latlon_to_cell(24.6877, 46.7219, 8)
print(cell) # t10830cd1943ffff8

Install from source​

First, clone the repository:

git clone https://github.com/tec-solution-ksa/terra.git
cd terra
git checkout v1.0.0

Install build dependencies:

brew install cmake
# Optional tools for development
brew install clang-format lcov doxygen

Build the library:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Optionally run the test suite:

ctest

Confirm the CLI is working:

./bin/terra latLngToCell --lat 24.6877 --lng 46.7219 -r 8

The Terra System is designed and developed by Tec Solution KSA.