Skip to main content

This package finds the rHEALPIX dggs cells for Polygons using the rhgealpix dggs engine.

Project description

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

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

DGGSForPoly-0.2.20.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DGGSForPoly-0.2.20-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file DGGSForPoly-0.2.20.tar.gz.

File metadata

  • Download URL: DGGSForPoly-0.2.20.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for DGGSForPoly-0.2.20.tar.gz
Algorithm Hash digest
SHA256 0427672477801115310c66dbb0080bc610e69dd0d53c281168c4b8a3d8de22b2
MD5 12e15156d0a87744a3e783319e075977
BLAKE2b-256 b8dc02bb68164b0d3bb6a735285da51e1f3f1495a4a46f074019d9a8e0783640

See more details on using hashes here.

File details

Details for the file DGGSForPoly-0.2.20-py3-none-any.whl.

File metadata

  • Download URL: DGGSForPoly-0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for DGGSForPoly-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 63943904d728301091a83e4010185f63cb9b11f52f3f425fa36a3777527ef29c
MD5 07d6664445d513746496054fd09e506d
BLAKE2b-256 14e973c5fde404836931ca3c74bd513ab9731b7717c8dca26b883127dfba1cdd

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