# Rtree

Canonical: https://gisforweb.com/tools/rtree/

Python spatial index wrapping libspatialindex, with R-tree queries and bulk loading.

Rtree is a ctypes wrapper around libspatialindex that gives Python a real spatial index instead of scanning every geometry. It supports nearest-neighbor and intersection queries, multi-dimensional indexes, clustered indexes that store JSON-like objects alongside entries, bulk loading, deletion and disk serialization, plus custom storage backends such as ZODB. Current releases ship binary wheels bundling libspatialindex 2.1, require Python 3.9 or newer, and support Windows, Linux and macOS including Apple silicon.

## Details

- Type: library

- Categories: analysis, data-processing

- Open source: Yes

- Pricing model: open-source

- License: MIT

- Platforms: linux, macos, windows

## Features

- Nearest neighbor and intersection queries

- Bulk loading, including NumPy arrays

- Clustered indexes storing objects inline

- Disk serialization and custom storage backends

- Multi-dimensional indexes beyond 2D

- R-tree and TPR-tree index variants

## Project sources

- Website: https://rtree.readthedocs.io/

- Repository: https://github.com/Toblerity/Rtree

Directory descriptions are summaries. Verify current capabilities and terms with the project sources.
