Debian Codegraph @

docs/source/history.rst

raw
1 .. _history:
2
3 History of Rtree
4 ------------------------------------------------------------------------------
5
6 `Rtree`_ was started by `Sean Gillies`_ as a port of the `libspatialindex`_
7 linkages that `QGIS`_ maintained to provide on-the-fly indexing support for
8 GUI operations. A notable feature of `R-trees`_ is the ability to insert data
9 into the structure without the need for a global partitioning bounds, and this
10 drove Sean's adoption of this code. `Howard Butler`_ later picked up `Rtree`_
11 and added a number of features that `libspatialindex`_ provided including disk
12 serialization and bulk loading by writing a C API for `libspatialindex`_ and
13 re-writing `Rtree`_ as a `ctypes`_ wrapper to utilize this C API. `Brent
14 Pedersen`_ came along and added features to support alternative coordinate
15 ordering, augmentation of the pickle storage, and lots of documentation.
16 Mattias (http://dr-code.org) added support for custom storage backends to
17 support using `Rtree`_ as an indexing type in `ZODB`_.
18
19 `Rtree`_ has gone through a number of iterations, and at
20 0.5.0, it was completely refactored to use a new internal architecture (ctypes
21 + a C API over `libspatialindex`_). This refactoring has resulted in a number
22 of new features and much more flexibility. See :ref:`changes` for more detail.
23
24 .. note::
25 A significant bug in the 1.6.1+ `libspatialindex`_ C API was found where
26 it was using unsigned integers for index entry IDs instead of signed
27 integers. Because `Rtree`_ appeared to be the only significant user of the
28 C API at this time, it was corrected immediately. You should update
29 immediately and re-insert data into new indexes if this is an important
30 consideration for your application.
31
32 Rtree 0.5.0 included a C library that is now the C API for libspatialindex and
33 is part of that source tree. The code bases are independent from each other
34 and can now evolve separately. Rtree is pure Python as of 0.6.0+.
35
36
37 .. _`Sean Gillies`: https://sgillies.net
38 .. _`Howard Butler`: https://hobu.co
39 .. _`Brent Pedersen`: https://github.com/brentp
40 .. _`QGIS`: https://qgis.org
41
42
43 .. _`ZODB`: https://zodb.org
44 .. _`R-trees`: https://en.wikipedia.org/wiki/R-tree
45 .. _`ctypes`: https://docs.python.org/3/library/ctypes.html
46 .. _`libspatialindex`: https://libspatialindex.org
47 .. _`Rtree`: https://rtree.readthedocs.io