Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 3.54 KB

File metadata and controls

92 lines (61 loc) · 3.54 KB

Background info

ISO Highlevel DGGS Reference: https://docs.ogc.org/as/15-104r5/15-104r5.html

Draft standard to be implemented partially: https://docs.ogc.org/DRAFTS/21-038.html

OGC GitHub: https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/

Required URL endpoints

  • prepare these API endpoints, and build upon the existing database access in our FastAPI server already

GET /dggs-api/v1/ landing page

GET /dggs-api/v1/dggs listing available DGGRS

GET /dggs-api/v1/dggs/{dggrsId} detailed info for available DGGRS (e.g. dggrsId=ISEA7H)

GET /dggs-api/v1/dggs/{dggrsId}/zones Listing zones

GET /dggs-api/v1/dggs/{dggrsId}/zones/{zoneId} Retrieving zone information (e.g. dggrsId=ISEA7H, zoneId=23456765432)

GET /dggs-api/v1/dggs/{dggrsId}/zones/{zoneId}/data Retrieving the actual data for a zone from the database (dggrsId=ISEA7H, zoneId=23456765432)

GET /dggs-api/v1/collections/{collectionId}/dggs Collection DGGS ("layers" / or "variables")

Data encoding and response formats

DGGS API feedback points

Build Docker

VERSION=latest
docker build -f docker/Dockerfile -t crim-ca/pydggsapi:${VERSION} .

Bump Version

Setup (as needed).

poetry install --only dev

Bump version check. Remove --dry-run to actually perform the version bump.

VERSION=1.2.3  # can have '-rc#', '-dev#' suffixes
bump-my-version bump --new-version ${VERSION} --dry-run --allow-dirty --verbose