Toblerity/rtree

Rtree: spatial index for Python GIS

Python

684

610 commits

updated Oct 12, 2026

See the code

README

Rtree: Spatial indexing for Python

Test PyPI version

Rtree is a ctypes Python wrapper of libspatialindex that provides a number of advanced spatial indexing features for the spatially curious Python user. These features include:

  • Nearest neighbor search
  • Intersection search
  • Multi-dimensional indexes
  • Clustered indexes (store JSON-like objects directly with index entries)
  • Bulk loading
  • Deletion
  • Disk serialization
  • Custom storage implementation (to implement spatial indexing in ZODB, for example)

Wheels are available for most major platforms, and rtree with bundled libspatialindex can be installed via pip:

pip install rtree

See changes for all versions.

Toblerity/rtree

Rtree: spatial index for Python GIS

Python

684

610 commits

updated Oct 12, 2026

See the code

README

Rtree: Spatial indexing for Python

Test PyPI version

Rtree is a ctypes Python wrapper of libspatialindex that provides a number of advanced spatial indexing features for the spatially curious Python user. These features include:

  • Nearest neighbor search
  • Intersection search
  • Multi-dimensional indexes
  • Clustered indexes (store JSON-like objects directly with index entries)
  • Bulk loading
  • Deletion
  • Disk serialization
  • Custom storage implementation (to implement spatial indexing in ZODB, for example)

Wheels are available for most major platforms, and rtree with bundled libspatialindex can be installed via pip:

pip install rtree

See changes for all versions.

Project health

Overall

3.9/10

Maintained

6/10

Code review

5/10
OpenSSF Scorecard

PyPI

Latest release

1.4.1 · Aug 13, 2025

Releases this year

0

Significant stargazers

Matt Le

92 followers · starred Jul 2017

Paul Melnikow

293 followers · starred Feb 2026

chebee7i

66 followers · starred Sep 2014

Gabriel Grant

156 followers · starred Apr 2013