Toblerity/rtree
GitHub: Toblerity/rtree
Rtree 是一个基于 libspatialindex 的 Python 空间索引库,为 GIS 应用提供高效的多维空间查询与索引功能。
Stars: 681 | Forks: 129
# Rtree:Python 的空间索引
[](https://github.com/Toblerity/rtree/actions/workflows/test.yml)
[](https://badge.fury.io/py/rtree)
Rtree 是 [libspatialindex](https://libspatialindex.org/) 的 [ctypes](https://docs.python.org/3/library/ctypes.html) Python 封装,为对空间技术感兴趣的 Python 用户提供了许多高级空间索引功能。这些功能包括:
* 最近邻搜索
* 交集搜索
* 多维索引
* 聚集索引(将 Python pickles 直接与索引条目一起存储)
* 批量加载
* 删除
* 磁盘序列化
* 自定义存储实现(例如,在 ZODB 中实现空间索引)
大多数主流平台都提供了 Wheels,可以通过 pip 安装内置 `libspatialindex` 的 `rtree`:
```
pip install rtree
```
查看所有版本的[更新日志](https://rtree.readthedocs.io/en/latest/changes.html)。
标签:GIS, libspatialindex, Python, 数据结构, 无后门, 最近邻搜索, 空间索引, 逆向工具