Python port of mourner/flatbush
This is a port of https://github.com/mourner/flatbush
To test: python test.py
Example:
from flatbush import FlatBush
fb = FlatBush()
# add two boxes
fb.add(30, 4, 32, 5) # x1,y1,x2,y2
fb.add(10, 60, 11, 63)
fb.finish();
# query
results = fb.search(minx, miny, maxx, maxy);
# results are an array of indices. The index starts at zero,
# and is the order in which you inserted elements into the tree.
Performance
These results are from an i7-6700K @ 4GHz, Python 3.7.4
- Inserting 250,000 rectangles: 2.1 seconds
- 1000 queries that retrieve 9 results each: 35 milliseconds
Metadata
Release files for flatbush 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flatbush-1.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flatbush-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / flatbush-1.1.0.tar.gz
| Download URL | flatbush-1.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9717491f4aec15fb2a61342825c5152c04b1e160c2dd143c39bdff81d200b91
|
|
BLAKE2b-256 checksum How to use checksums |
49b60fcd4d41fef4baa005084510c134858e9381914322d8c8f8451d75079550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / flatbush-1.1.0-py3-none-any.whl
| Download URL | flatbush-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d9f1bfd1afd5eb6b4ef322b7a8b3164617b5cfdc2fbb891969a31595b62a45f
|
|
BLAKE2b-256 checksum How to use checksums |
5013810388948085de799221ad350e2ac9b0818e72dd53b34913bed365fb40fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|