# Rtree: Spatial indexing for Python

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 Python pickles directly with index entries)

- Bulk loading

- Deletion

- Disk serialization

- Custom storage implementation (to implement spatial indexing in ZODB, for example)

## Documentation

- Installation
  - *nix
  - Windows
- Tutorial
  - Creating an index
  - Using Rtree as a cheapo spatial database
  - Serializing your index to a file
  - 3D indexes
  - ZODB and Custom Storages
- Class Documentation
  - `Index`
  - `Property`
  - `Item`
- Miscellaneous Documentation
  - Exceptions
  - Finder module
- Changes
  - 1.2.0: 2024-01-19
  - 1.1.0: 2023-10-17
  - 1.0.1: 2022-10-12
  - 1.0.0: 2022-04-05
  - 0.9.3: 2019-12-10
  - 0.9.2: 2019-12-09
  - 0.9.0: 2019-11-24
  - 0.8: 2014-07-17
  - 0.7.0: 2011-12-29
  - 0.6.0: 2010-04-13
  - 0.5.0: 2009-08-06
  - 0.4.3: 2009-06-05
  - 0.4.2: 2009-05-25
  - 0.4.1: 2008-03-24
  - 0.4: 2008-01-24
  - 0.3: 26 November 2007
  - 0.2: 19 May 2007
  - 0.1: 13 April 2007
- Performance
  - Use stream loading
  - Override `dumps` to use the highest pickle protocol
  - Use objects=’raw’
  - Adjust index properties
  - Limit dimensionality to the amount you need
  - Use the correct query method
- History of Rtree

- Index

- Module Index

- Search Page