S2-py
A light wrapper over s2sphere to mirror H3-py API calls.
Installing
pip install s2
Using
Import It
from s2 import s2
Get a s2 square given a point
lat, lon, res = 12, -3, 10
s2_address = s2.geo_to_s2(lat, lon, res)
Get the boundaries of a s2 square
s2.s2_to_geo_boundary(s2_address)
Get squares of a resolution within a polygon
s2.polyfill(geo_json, res)
Features
Table of functions to be implemented in order of priority
h3 functions |
implemented? |
issue |
geo_to_h3 |
yes |
|
h3_to_geo |
yes |
|
h3_to_geo_boundary |
yes |
|
polyfill |
yes |
|
hex_ring |
no |
|
k_ring |
no |
|
k_ring_distances |
no |
|
h3_set_to_multi_polygon |
no |
|
h3_to_parent |
no |
|
h3_to_children |
no |
|
hex_range |
no |
|
hex_area |
no |
|
edge_length |
no |
|
num_hexagons |
no |
|
h3_indexes_are_neighbors |
no |
|
h3_distance |
no |
|
h3_line_size |
no |
Credits
Free software: MIT license
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.9 (2019-11-12)
Add option to polyfill to return geometry ids.
0.1.8 (2019-11-12)
Add example tests.
0.1.7 (2019-11-12)
Basic Documenations.
0.1.0 (2019-11-12)
First release on PyPI.
Metadata
Release files for s2 0.1.9
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 |
|---|---|---|---|---|
| s2-0.1.9.tar.gz | 12.0 kB | Without provenance | Details for s2-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| s2-0.1.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for s2-0.1.9-py2.py3-none-any.whl |
Total release size: 16.1 kB
Release files / s2-0.1.9.tar.gz
| Download URL | s2-0.1.9.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad7a90d78f00dd9edf5002ebfa16163a6cbea582bba4ad8ea9d22df07a60851e
|
|
BLAKE2b-256 checksum How to use checksums |
b9b0efaa760f81b02e11a74d00d9810e1f3b704ee8894be7cf996e4f74759a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.0
|
Release files / s2-0.1.9-py2.py3-none-any.whl
| Download URL | s2-0.1.9-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8f550c1f65a16a5e2efb64867d12356f20092a2d87b10575104563ef6379c192
|
|
BLAKE2b-256 checksum How to use checksums |
a3cd149942fbf9cd80e2ef62bb4ccac8a016e6ba2ce383ab01ae8dbf8953fe59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.0
|
Security for s2 0.1.9
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.