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.3.tar.gz (33.7 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.3-cp310-abi3-musllinux_1_2_x86_64.whl (509.6 kB view details)

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

rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_i686.whl (532.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ i686

rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_armv7l.whl (602.0 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARMv7l

rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_aarch64.whl (518.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (338.8 kB view details)

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

rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (340.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

rusty_polygon_geohasher-0.1.3-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.3-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (358.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

rusty_polygon_geohasher-0.1.3-cp310-abi3-macosx_11_0_arm64.whl (296.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

rusty_polygon_geohasher-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl (304.1 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: rusty_polygon_geohasher-0.1.3.tar.gz
  • Upload date:
  • Size: 33.7 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.3.tar.gz
Algorithm Hash digest
SHA256 5c8a235945599fba9813a1a483f11c7e65ddc3f2d34d1dd516f86b44d111139c
MD5 258680a9b8f6dbae048d87de5e6b5740
BLAKE2b-256 590919deba7b16d682f62aff05952439632b8c1780c408764d2049653fdf6df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 762d1f9e41407af2d88ac85786b0d0653b8153aee6eb5428be391b72a818f881
MD5 b79da3b6f8c70ed02f19c02306265790
BLAKE2b-256 3fac443944b6713474d5fe6a13ef3fded78b360bd1b169b4956f64fe4df759b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 92d0201d1cfff0f500f9a406ce10b496eb39c34acb9434bd097a3654fa45bb69
MD5 e3f44b3e244c88a8943366da1aa3b674
BLAKE2b-256 d93e2c507d460e94a98612480813742bcebed9c66e5eac83d62540f96c1e0f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 1a03b39bebf683718bebf9c371386344b5f4fa9a136965f7f283830a3bc8c06d
MD5 bcd889b52bb3daf909b29a3fb8862673
BLAKE2b-256 80980d002aeb65bc98e56b6b785d1ee1b02d076d55ec5e31af9f21e62285f82d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 923e50b9ab3ae4caad4261e3758ee7bc27fc9103fb196a8321e489c2dd7fe2fe
MD5 8e840c371f79c8abdfdc0047f01a96ab
BLAKE2b-256 5bc7750a64b0e7ded0563d2e7b6b1149d0c8005821d0090783c30e1d2c0bc749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f688738d0ba527a6dc977b351e1d0320429bea0a61a8ecd084349a2df73d1275
MD5 81d1ab297b4a36a085a3cd0a7adcfb69
BLAKE2b-256 a4c973d16ea131ad2902eb78d548f6f72338e7a637f09d045843a02ddb594608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bbeed0f348f643a586657f4fae2503ea344bde6d9805239bf22c44a58f97713e
MD5 5cf44c6ab487cb984a7cdbe601f7e376
BLAKE2b-256 61515ff3f42629f17ded4b0b44a1537390da2785465bef61267727fbfec118f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dbadc232685b450682d6bcccadaa9e908284cc1ddc6a7863c45ec18a76265399
MD5 749b93434145f9ce4927d5c220f9eebc
BLAKE2b-256 86bef02b280b216f5cd010742543e1413a5c6bd4fc572903a912ad539f5f0fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 d5694e8b2c8f5c022849f08d837175730e7400bbe2b4959f097eb8fccea7479d
MD5 be785f4132c6001d8919d4188ff9c7de
BLAKE2b-256 80fe6f564b9deb0fb1f0733f08ef5fca0cf67bc77311982d662cb6a804f98f6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ca4c5b03250fab22015f22186dd3b6c1f19cd8e35725c495dd128c8dc32fab9
MD5 db09c599c28b89dc85d5ae663d06489a
BLAKE2b-256 d1b548df1cb449b1beae85baaf372ba06827419653bd6b3738d8228750fad23e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_polygon_geohasher-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c87e950aa336b05920ee3cd63003c1016df0ef5bea6f88cec31425c18045419f
MD5 81bcde332b86e120e0045b154a03cccb
BLAKE2b-256 453866266da1d1a30b6299942ab7506a42aab76a596c817e9d4cfecacee5c680

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