Skip to main content

R-Tree spatial index for Python GIS

Project description

Rtree: Spatial indexing for Python

Build 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 Python pickles 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

Changes

1.1.0

  • Python 3.8+ is now required (#273)
  • Move project metadata to pyproject.toml (#269)
  • Refactor built wheels for PyPI (#276)
  • Fix memory leak when breaking mid-way in _get_objects and _get_ids (#266) (thanks @akariv!)

1.0.1

  • Fix up type hints #243 (thanks @oderby)
  • Python 3.11 wheels #250 (thanks @ewouth)

1.0.0

  • Python 3.7+ is now required (#212) (thanks @adamjstewart!)
  • Type hints (#215 and others) (thanks @adamjstewart!)
  • Python 3.10 wheels, including osx-arm64 #224
  • Clean up libspatialindex C API mismatches #222 (thanks @musicinmybrain!)
  • Many doc updates, fixes, and type hints (thanks @adamjstewart!) #212 #221 #217 #215
  • len method for index #194
  • Prevent get_coordinate_pointers from mutating inputs #205 (thanks @sjones94549!)
  • linux-aarch64 wheels #183 (thanks @odidev!)
  • black (#218) and flake8 (#145) linting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Rtree-1.1.0.tar.gz (49.2 kB view details)

Uploaded Source

Built Distributions

Rtree-1.1.0-py3-none-win_amd64.whl (435.7 kB view details)

Uploaded Python 3 Windows x86-64

Rtree-1.1.0-py3-none-musllinux_1_1_x86_64.whl (990.0 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

Rtree-1.1.0-py3-none-musllinux_1_1_i686.whl (1.1 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ i686

Rtree-1.1.0-py3-none-musllinux_1_1_aarch64.whl (943.9 kB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

Rtree-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (488.6 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

Rtree-1.1.0-py3-none-manylinux2014_i686.manylinux_2_17_i686.whl (513.5 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ i686

Rtree-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (446.2 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

Rtree-1.1.0-py3-none-macosx_11_0_arm64.whl (398.2 kB view details)

Uploaded Python 3 macOS 11.0+ ARM64

Rtree-1.1.0-py3-none-macosx_10_9_x86_64.whl (436.7 kB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

Details for the file Rtree-1.1.0.tar.gz.

File metadata

  • Download URL: Rtree-1.1.0.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for Rtree-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6f8ee504dde5d005b25b08aaf5be0b3404af3ad5fece6e1ddcde35908a798a95
MD5 a162c00e1a41ef4315c2a4032311e0e3
BLAKE2b-256 98375dd86f8be05dbf6ab1be9817958ecd2dafc6913639a511ad6f71365f1c3e

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: Rtree-1.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 435.7 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for Rtree-1.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d346ab57eabee139890a51bf7e02c17c5bcbff68db84e1571ed5247fe108b8e7
MD5 f6315c2591d3769729ed4a6f419f4870
BLAKE2b-256 dad72077f7f07011d5ed28957443d0798e0381e9794cc67b93ec580bc1186485

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 696a5f3ecf8b622ab5827e107e762ecffa0555944433f2824dd7f46b4afc410b
MD5 61a60ecb65bfeec7e2ecebbfab989961
BLAKE2b-256 77412fdce6bd057638f9947f0eaa3971402fe01f2f272951f49cdfb1df017117

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 818dde0ef54166edfb438a3bbf97bcc2eb0b984ab9ec5e7d20779479e456bfad
MD5 1def800ec01631eee9005b92952ca38d
BLAKE2b-256 21b2b3d2948c6a81320df9b4eb997ec66382f518b561187bd6e4d4dc8333fc6f

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 22c670ed503de4f42789a7ca1554b219d5820133edaf2a28a051bad2ac90bbca
MD5 c18068a05d9a56aea724f04e0015a599
BLAKE2b-256 b1cc670a9d48b7710117647444680f6897b7e398aabbc41a6b01215baaaa044d

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 96307058e0149b6124b5af1d48a145b3c1e0086db44de50b435f173e934fc510
MD5 64a3aa124f8d8739397b0fd5cbd82de0
BLAKE2b-256 f20474f48b042aabdafa122289957240f4c013aec8c9045c3ce2fe3d1fa7a937

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-manylinux2014_i686.manylinux_2_17_i686.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-manylinux2014_i686.manylinux_2_17_i686.whl
Algorithm Hash digest
SHA256 f1787187b7d74845484e2da029775928ac6af2d453d401e0082022c6552c49b1
MD5 88f405ac800ab85d4296349a45e61fc2
BLAKE2b-256 a3f15716356fb4175df7dac7c8d96444dd28e14813f471a8a6eb09712741b1f1

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 91d3e4b19efa77fc3c09fbbbed48c588bfa056c8b73b5bd084fb0d2d37654775
MD5 0ebddf06468d44b6d67fe424d6112395
BLAKE2b-256 de2366c3589a3de737e963859f39a1ce2bc98796b3427c2ebdc614b5c02cfda5

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eac35fc095e36f5e5678f7777f296b6a076332c65cfbe00e5cd54b0518f6d71f
MD5 a6e29b7590b4faab6e9d7c0494db63a3
BLAKE2b-256 1ca6524326a993fad04215299e0023ed9c93b15d5bd62822d887729a90c27d52

See more details on using hashes here.

File details

Details for the file Rtree-1.1.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for Rtree-1.1.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5dc612959233cf07f31c8f1a4cf1587eea86dc2fc6d6938f35f28d312bbbbd3e
MD5 09449b604930a8d5695131151c68214b
BLAKE2b-256 2d346ff42901722a18b81427bc240483276ebda786197125901975f7b9a6c9d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page