geojsonhash
This package is responsible for generating identifiers for geojson objects. To do so, it makes use of the pygeohash library in charge of generating the identifiers of the different points contained in the geojson.
In this implementation, individual points are ignored, treating the input geojson as a set of polygons defining a surface. The polygons are sorted according to their coordinates while the northwest-most vertex of the polygons defines the starting point for encoding.
Installation
To install the package there are two options: through poetry or by using the pip command
Pip command
$ pip install geojsonhash
Poetry
$ git clone https://github.com/AdrianSeguraOrtiz/geojsonhash.git
$ cd geojsonhash
$ poetry install
Example
An example is shown below:
from geojsonhash import get_geojson_id
import json
with open("./resources/geojson.json") as geo_d:
geojson = json.load(geo_d)
geojson_id = get_geojson_id(geojson)
print(geojson_id)
To run it through console we can do:
$ cd examples
$ python example.py
Metadata
Release files for geojsonhash 0.1.1
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 | |
|---|---|---|---|---|
| geojsonhash-0.1.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geojsonhash-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / geojsonhash-0.1.1.tar.gz
| Download URL | geojsonhash-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2458c505d8ff6700f9555898f1c052b2db0bfab78df159a82f3182e28d91e6eb
|
|
BLAKE2b-256 checksum How to use checksums |
262231591da17be81d029d7c1b04af8dec8982257f88754fe34b750d6b7c1f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.6 Linux/5.4.0-1046-kvm
|
Release files / geojsonhash-0.1.1-py3-none-any.whl
| Download URL | geojsonhash-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ca5a3dbf9bd49f6c015d0f476f9b558e6567f35f6c1a52855d13494185fd96d
|
|
BLAKE2b-256 checksum How to use checksums |
d086306fa11166cd1c01b97324f622edc4b982f0eaac964883056e0dcdb1bf13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.6 Linux/5.4.0-1046-kvm
|
Security for geojsonhash 0.1.1
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.