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.2.0.tar.gz (44.9 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.2.0-cp310-abi3-win_amd64.whl (211.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

rusty_polygon_geohasher-0.2.0-cp310-abi3-win32.whl (206.0 kB view details)

Uploaded CPython 3.10+Windows x86

rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_x86_64.whl (523.1 kB view details)

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

rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_i686.whl (547.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ i686

rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_armv7l.whl (616.9 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARMv7l

rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_aarch64.whl (532.8 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (352.5 kB view details)

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

rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (354.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (355.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (372.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

rusty_polygon_geohasher-0.2.0-cp310-abi3-macosx_11_0_arm64.whl (307.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

rusty_polygon_geohasher-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl (320.0 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: rusty_polygon_geohasher-0.2.0.tar.gz
  • Upload date:
  • Size: 44.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0da7e22b330888249d4aade38fa6719e85f0a4089b2e137a5007a86c12edaf89
MD5 5c5f629cb39ad899ead4c16428380624
BLAKE2b-256 f5568575998ca71e92eacc1bdf064839fcd2477ce783bfcd6bd4b945482c25a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 23f442ba66bf6803de5bed04ba193587471518fdcbc6283ca8647d2f5c4bf2a8
MD5 9b22c9997e569d5ebc652ad1a7eeac09
BLAKE2b-256 827f5e965b4db7e7b374d3f7dab7482a7d881a2b254e8dfb6e8884b31afa321c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 52a70c4c01f29e1dac23c773d3be72a50beb46cf81d4a23444f1c00d71be270a
MD5 43166b52e4e007824cd657da4491cf67
BLAKE2b-256 f996c569307600b43e7e159509c6f7686699c2d3d0a4ec5cbdd5070b451ae786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4d8bf6195665b140b14cd6e7caec46bab57777618585018a368983c2d43a97c
MD5 c74b80f3116b4acfa41ac1b4ecaa46da
BLAKE2b-256 97e303aacfb6cf405731394ace89331342c875807ea8b909a83e107d7e98b7e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 52cb19409b976ab526ada6d7a099066e1856c51232b89f6c3038e69c9479ba31
MD5 956b78106eb468df0d693ac912676062
BLAKE2b-256 b7312e24e4af6715d0ec531ba6f99225c7671fb1202ea1a43b6834999624a0ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 5f9b53e0e4a717ba683e14e722e3895a6f7a89fda312b50922440ef5c7ec6807
MD5 efe8214e1e478f22fa29556e1d9eac3f
BLAKE2b-256 614661a5536d5ea7debd7ec462b31d64df4a6ecf6208ca358fcf46f468b84860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 01636c6837b3edc5f7f78ecef7f836d8304013a6fe8b37f456a9ae4b8e8839ae
MD5 45a6ddb5be72ec3e0c7a3673a69cefd6
BLAKE2b-256 c1f53dadcdd9f077951364e33e72b28dfa0fbea7df7c1c060925fc97fbb1ce50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab0ecd0098d36c498f2a4e5b1f216f45cbb0d9e01d15ed1d7dec070c69a92739
MD5 a1a05dbb7b34213b86bf29bd4a4b6518
BLAKE2b-256 17c82ba710763673f9c68bc3863781c7b6e01ddd275cce3f9978163591bb6e6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 252ca3f7f70bbca218760360e85ab6c0d5e836e34dcd7e1c7d20d45f7d2332d1
MD5 35fc5eef981ff17a5b6cb702cf983474
BLAKE2b-256 ef006517c62116ea09f46f3c34b36b5e4f32248091592de9dc12f162be7c22bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d52f095d51dc530b8585953939f3993ce0ba9c9fa7fd0ea422e9fe56b67859af
MD5 be115d709cefd358512b538d74e3fdc4
BLAKE2b-256 8d35c46c21a87e47bd882be8d6a88f371a18b80baceafb33b633c7a98ff2523c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 086452ca67609f10e042ee646e3cf4743115239e67b3f61ff2156ae1101268c1
MD5 b60cb02f5d813d2a5ca2be9c20d8eff3
BLAKE2b-256 99078dd21e76998ce8811ad6ebc7ff918a8886c0cfe1aa306fb297d70056fa42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07c7e9821075a1cbea9be4a1ccdf406583696f90bdd2b9600aeab46644eee075
MD5 923575bcc9a94bc672fde500186b3b3b
BLAKE2b-256 2b5eb9fe2eb6dc68b717f96e9d613e0e71704c87d5306042bf1ae46d2132a13b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1ee049619dbf77e9aa7d2db710166159ee372142ea1eb9dabc677268f38f8bc4
MD5 8478e320a4233c9bf87ef66373fc88f8
BLAKE2b-256 69125d3f74498ef2425ea1f944e8a7334123842d82703e1c11fb101bf81e0aab

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