Install Geometry for the interface you use#

Goal

Command or next step

Query with Python SQL

uv sync --locked --no-default-groups

Use eager cuDF frames and export to GeoPandas

uv sync --locked --no-default-groups --group cudf --extra geopandas

Run SQL from the shell

cargo build --release -p cugeo-geometry-execution --features cudf-request --bin cugeo-geometry-query

Configure and link a native application

Build and link the Geometry SDK

Build the shared native library, then install the components for your chosen interface. Run the commands on this page from cugeo-geometry/.

Check prerequisites#

Use Linux on x86-64 or aarch64, glibc 2.38 or later, an NVIDIA driver for CUDA 13, and micromamba, mamba or conda. The default Proj build also needs Rust and the PROJ and libtiff development files. Use the committed platform lock for toolchain versions.

Build the native library#

Choose how the build will provide coordinate transformations before running the script.

Transform choice

Build option

Build Proj with Geometry

Default, with no additional option

Use an installed cuGeo Proj target

--cugeo-proj-prefix DIR, replacing DIR with its prefix

Build without cuGeo Proj

--without-cugeo-proj, and ST_Transform reports missing_capability

For the default build, run the following command.

tools/build_native.sh --prefix "$PWD/build/geometry-local"

Add --arch to select the GPU target or --jobs to limit compiler concurrency. After the script successfully loads the library, run the export CUGEO_GEOMETRY_CUDF_LIBRARY=... line it prints in the shell that will launch your workload.

Install and check your interface#

For either Python choice in the table, use Python 3.12 or later and run the corresponding uv sync command. Maturin builds the Rust extension. The cudf group selects the CUDA 13 cuDF stack and local pylibcudf producer on supported Linux hosts. The geopandas extra supplies GeoPandas, Shapely and PyArrow for export.

Check the Python installation’s build identity.

.venv/bin/python -c 'from cugeo.geometry import build_identity; b = build_identity(); print(b.library, b.cuda_sdk.version, b.cuda_sdk.provider, b.cuda_sdk.profile)'

Check that the printed library path resolves inside the selected build, and identify the linked SDK, provider and profile from the printed values. The native load check and this identity check establish which build was loaded. A successful query through your chosen interface establishes that it can execute your workload.

For shell SQL, run the Cargo command in the table and use the resulting cugeo-geometry-query executable.