Skip to main content

flatbush spatial index

Project description

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

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

flatbush-1.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flatbush-1.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flatbush-1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flatbush-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c9717491f4aec15fb2a61342825c5152c04b1e160c2dd143c39bdff81d200b91
MD5 bde0a08735c384b47b7b309b3caa9af2
BLAKE2b-256 49b60fcd4d41fef4baa005084510c134858e9381914322d8c8f8451d75079550

See more details on using hashes here.

File details

Details for the file flatbush-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: flatbush-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for flatbush-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9f1bfd1afd5eb6b4ef322b7a8b3164617b5cfdc2fbb891969a31595b62a45f
MD5 7b548ed29711130da7bec48e414decdc
BLAKE2b-256 5013810388948085de799221ad350e2ac9b0818e72dd53b34913bed365fb40fb

See more details on using hashes here.

Supported by

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