Vec_GeoHash
Short Description
Vectorized functions that allow efficient transformation of latitude and longitude coordinates into Map Tile coordinates, Map Pixel coordinates or QuadKeys. This can be particularly useful in (GIS) geographic information systems and mapping applications. By utilizing vectorized functions, transformation can be performed on large datasets, with minimal impact on performance. Additionally, only using numpy as dependency these functions can be easily incorporated into existing code and workflows.
Instalation
The project can be installed using `pip`:
pip install vec_geohash
To install from this repo:
git clone https://github.com/FJakovljevic/vec_geohash.git
cd vec_geohash
pip install -e .
Usage
Vector example
import vec_geohash
lat_vector = [53.1231276599, 41.85]
lon_vector = [82.6978699112, -87.65]
zoom = 9
# getting tiles as [tile_x] vector and [tile_y] vector
vec_geohash.lat_lon_to_tile(lat_vector, lon_vector, zoom)
>>> (array([373, 131]), array([166, 190]))
# getting tiles as [[tile_x, tile_y]] vector
vec_geohash.lat_lon_to_tile(lat_vector, lon_vector, zoom)
>>> array([[373, 166],
[131, 190]])
# getting quadkey
vec_geohash.lat_lon_to_quadkey(lat_vector, lon_vector, zoom)
>>> array(['121310321', '030222231'], dtype='<U9')
# getting pixels as [pixel_x] vector and [pixel_y] vector
vec_geohash.lat_lon_to_pixel(lat_vector, lon_vector, zoom)
>>> (array([95645, 33623]), array([42622, 48729]))
# getting pixels as [[pixel_x, pixel_y]] vector
vec_geohash.lat_lon_to_pixel(lat_vector, lon_vector, zoom)
>>> array([[95645, 42622],
[33623, 48729]])
Scalar example
import vec_geohash
lat = 53.1231276599
lon = 82.6978699112
zoom = 9
# getting tiles
vec_geohash.lat_lon_to_tile(lat, lon, zoom)
>>> (373, 166)
# getting quadkey
vec_geohash.lat_lon_to_quadkey(lat, lon, zoom)
>>> array(['121310321'], dtype='<U9')
# getting pixels
vec_geohash.lat_lon_to_pixel(lat, lon, zoom)
>>> (95645, 42622)
Metadata
Release files for vec-geohash 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vec_geohash-0.0.3.tar.gz | 10.3 kB | Without provenance | Details for vec_geohash-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vec_geohash-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for vec_geohash-0.0.3-py3-none-any.whl |
Total release size: 17.3 kB
Release files / vec_geohash-0.0.3.tar.gz
| Download URL | vec_geohash-0.0.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c728662ca3f8a89816d5484a54d4492da35351e2e8d91a622baab6118e6fc09a
|
|
BLAKE2b-256 checksum How to use checksums |
70d0952fd268fb6a0d8d23cd1b2829dd60d2c9d9897c3f4b39bb7bd9ae3dfff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / vec_geohash-0.0.3-py3-none-any.whl
| Download URL | vec_geohash-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caaea64f689b780f00358969507e97d2215200884c4b5000cbc7e65e0ad27ec0
|
|
BLAKE2b-256 checksum How to use checksums |
ddb6245e81639a8e567913d2b9e8a5cc9bbbf998a8ea4d8fb1615ab59df3e3c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for vec-geohash 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.