Skip to main content

No project description provided

Project description

rusty-polygon-geohasher

Polygon Geohasher is an open source Python package for converting Shapely's polygons into a set of geohashes. It obtains the set of geohashes inside a polygon or geohashes that touch (intersect) the polygon.

The library is based on the polygon-geohasher library which is implemented in pure python. The main difference is that this library is implemented in Rust, yielding a significant performance improvement.

Installing

You can get the library from the Python Package Index (PyPI) using pip:

$ pip install rusty-polygon-geohasher

Usage

Here are some simple examples:

from polygon_geohasher.polygon_geohasher import polygon_to_geohashes 
from shapely import geometry

polygon = geometry.Polygon([(-99.1795917, 19.432134), (-99.1656847, 19.429034),
                            (-99.1776492, 19.414236), (-99.1795917, 19.432134)])
inner_geohashes_polygon = geohash_polygon.polygon_to_geohashes(polygon, 7, inner=True)
outer_geohashes_polygon = geohash_polygon.polygon_to_geohashes(polygon, 7, inner=False)

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

rusty_polygon_geohasher-0.1.4.tar.gz (34.3 kB view details)

Uploaded Source

Built Distributions

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

rusty_polygon_geohasher-0.1.4-cp310-abi3-win_amd64.whl (197.3 kB view details)

Uploaded CPython 3.10+Windows x86-64

rusty_polygon_geohasher-0.1.4-cp310-abi3-win32.whl (192.3 kB view details)

Uploaded CPython 3.10+Windows x86

rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_x86_64.whl (509.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_i686.whl (532.6 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ i686

rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_armv7l.whl (602.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARMv7l

rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_aarch64.whl (518.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (339.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (340.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (339.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (358.5 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_11_0_arm64.whl (293.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_10_12_x86_64.whl (304.2 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file rusty_polygon_geohasher-0.1.4.tar.gz.

File metadata

  • Download URL: rusty_polygon_geohasher-0.1.4.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for rusty_polygon_geohasher-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b3cdfa6ccf877fef795c52edb4005d25c62c59d5d758e6c0bb65dbea99b81d58
MD5 f4e6a53a73ef81c017c0ca4ce2cc210a
BLAKE2b-256 8662277a65f7aaecdf85e5bb544276f5089f69414725e69a21256ea0d645c863

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 033da50d8a5987760be3f05be02f8b7a37feff22bfc39495a9afd7df03d2fde0
MD5 c10925279fe8893b7e51377ef69c043b
BLAKE2b-256 c8082832723ba142a04a968f8d6889a9752dfc84ebe6420bfa67f26f3a0a410b

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-win32.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 f19efd5e6233b00e71e602584d5538bb928490255466841ed5ecdcd67ca99086
MD5 4b602a9c715b9af54d6330b5a6edbb70
BLAKE2b-256 ac14ea57a32a1382f2c1c9279bebfbaceff63f05d44f1bc0b636b36caf3d4b85

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7bdf234ca9a2fae3b1da2c202959f53907a393e8e2586f6c5d72db2ba8ce3f39
MD5 b0170ecc4b1adb18c53d4a2d183ee832
BLAKE2b-256 484516e3c9b71c25054f9d00d3131b84231ef59a293e8261589e33b2bc891eca

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 576e62c9003f19322ca55b9f371a74b91039298027496505b0f01fa838b08f5f
MD5 ba9742e95b1afb966572fbc12b26357d
BLAKE2b-256 5262847a6e87700e54592c5d75ab5ea4d66c37eedb279613a81463f7ef0733ae

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 ee4fd4e753819590a1ba84d63f5417abee6354797e1158af14cda39a72949a2f
MD5 b8fec90edb58ee04cb0014baad47dac9
BLAKE2b-256 86a3c858f447c32c643a65639cec9011eb3dc30252ec6f834020856f57876c2f

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 77e38ac8a7f60a85998d84c3eb6dbf53554fa311ad989bccbf06c84c75a9b0c7
MD5 0f6472a0e951e77c88af988b1753e3a0
BLAKE2b-256 59baaccdd31ed537f23ef0112e678dc5e9612c7581e4be45de8e8be98996bf23

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17377503b55478a077d1a4095b6fabbbc2226425cc409a2eecfc828e8834431c
MD5 1b3a25cdc15b9003409c688efd531055
BLAKE2b-256 7344965e38407245d161aeaabfd837de8e8578cdaad177da0d1c8dad0fb6e81a

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 c2460ee4422f4ed799915ff9952fc0fa0b3b47c50d4cf3483161a54ab48d5d75
MD5 8436e883f3d4e35d6e7b79097f5c275b
BLAKE2b-256 3ec0123efe97f871932092fc538b89242bd89798747eb272161baaf466b64a91

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fe537ac6fcc4b3c5e8da58dbf667bf179851035c2002781bc936d7729dad98e2
MD5 65a2982a8127be5fa524137862acc40a
BLAKE2b-256 a330a19c517d1028d9141d9cdec034c9dcc33dcefabd28dadcf248e1b2a98ba6

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 0a2e2f1e991bd243fd945205ffee1ad1b57962864b0c1974592b1cf76df8101d
MD5 6a7e15279ec6dbbe6d2f505a86a54bd6
BLAKE2b-256 09c0e526429e5d64df5cd4aea392b0236d572586f5c0f777bf81faceaa7709d8

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9471a50585a93c3a5367ddd1b5f60e8aa33b6bd4c16793f5c07871821418dfd2
MD5 7ca4f211a4f6326016f7a25b58ca1b09
BLAKE2b-256 8e327382f015da006054b7b9fd3190236eb2d3ef1049e9455969388c70bf5e01

See more details on using hashes here.

File details

Details for the file rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.4-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b40ed1f7c5d05cf67d92da9bc435d28b384c449d53143a611b038b68363b9ec8
MD5 0e8809e73738f71f8501c1d92033a828
BLAKE2b-256 88983a0bb7efdbafbacc77e94b3e17a64e036be53766cd117db941bcf5ec75f9

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