DGGSForPoly
poly_fill
Contains a function that returns a set of rHEALPIX DGGS cells that describe the geometry of the inputted polygon.
The function is built on top of the AusPIX DGGS Engine (https://github.com/GeoscienceAustralia/AusPIX_DGGS/) and makes use of Shapely's Binary Predicates (which is a possible area for future optimisation).
Fill Strategies
poly_fill() function has 3 fill_strategies:
1) poly_fully_covered_by_cells - returns a set of cells that completly encapsulating the polygon -> over estimates area
2) centroids_in_poly - returns a set of cells whose centroids are contained by the polygon.
3) cells_fully_contained_in_poly - returns a set of cells completely encapsulated by the Polygon -> under estimates area
cell_operations
Contains modules for calculating area of cell list and for visualising sets of cells and the polygon they represent. poly_fill utilises some functions in the helper module.
Setting up environment
$ python3 -m venv .venv
$ source .venv/bin/activate
# or on Windows: source .venv/Scripts/activate
$ python setup.py install
Include testing
$ pip install -U pytest
$ pytest
Release files for DGGSForPoly 0.2.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| DGGSForPoly-0.2.20.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DGGSForPoly-0.2.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / DGGSForPoly-0.2.20.tar.gz
| Download URL | DGGSForPoly-0.2.20.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0427672477801115310c66dbb0080bc610e69dd0d53c281168c4b8a3d8de22b2
|
|
BLAKE2b-256 checksum How to use checksums |
b8dc02bb68164b0d3bb6a735285da51e1f3f1495a4a46f074019d9a8e0783640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / DGGSForPoly-0.2.20-py3-none-any.whl
| Download URL | DGGSForPoly-0.2.20-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63943904d728301091a83e4010185f63cb9b11f52f3f425fa36a3777527ef29c
|
|
BLAKE2b-256 checksum How to use checksums |
14e973c5fde404836931ca3c74bd513ab9731b7717c8dca26b883127dfba1cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|