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/
- prepare these API endpoints, and build upon the existing database access in our FastAPI server already
- https://docs.ogc.org/DRAFTS/21-038.html#_root_dggs_dggs
- default service metadata (compare OGC API features - pygeoapi for example)
- agree on details, only minimal conformance classes
- https://docs.ogc.org/DRAFTS/21-038.html#_summary_of_conformance_uris
- https://docs.ogc.org/DRAFTS/21-038.html#_listing_available_dggrs_dggs
- as we only have our data in ISEA7H currently, only this one for now
- https://docs.ogc.org/DRAFTS/21-038.html#_discrete_global_grid_reference_system_information_dggsdggrsid
- we will have to fill this based on our experience, should consider this also with DGGS type info in XDGGS
- requirements: https://docs.ogc.org/DRAFTS/21-038.html#_listing_zones_dggsdggrsidzones
- encoding rules: https://docs.ogc.org/DRAFTS/21-038.html#zone-list-encodings-section
- only
JSON zone list,GeoJSON zone list, maybe alsoJSON-FG zone list
GET /dggs-api/v1/dggs/{dggrsId}/zones/{zoneId} Retrieving zone information (e.g. dggrsId=ISEA7H, zoneId=23456765432)
- https://docs.ogc.org/DRAFTS/21-038.html#zone-info
- is only meant for location/cell and topology info (not real data from the database)
GET /dggs-api/v1/dggs/{dggrsId}/zones/{zoneId}/data Retrieving the actual data for a zone from the database (dggrsId=ISEA7H, zoneId=23456765432)
- https://docs.ogc.org/DRAFTS/21-038.html#_retrieving_data_from_a_zone_dggsdggrsidzoneszoneiddata
- with zone-depth in additional step (https://docs.ogc.org/DRAFTS/21-038.html#rc_data-custom-depths)
- all is basic JSON aiming to conform to OGC API building blocks JSON-schema (GeoJSON, FG-JSON - still GeoJSON)
- specific DGGS API formats we start with are only
DGGS-JSON Data,DGGS-FG-JSON DataandZarr Data - https://docs.ogc.org/DRAFTS/21-038.html#zone-data-encodings-section
- Media-types:
- application/json
- application/geo+json
- application/fg+json
- application/zarr+zip
- DGGS-JSON: https://docs.ogc.org/DRAFTS/21-038.html#rc_data-json
- GeoJSON: https://docs.ogc.org/DRAFTS/21-038.html#rc_data-geojson
- DGGS-FG-JSON: https://docs.ogc.org/DRAFTS/21-038.html#rc_data-fgjson
- Zarr: https://docs.ogc.org/DRAFTS/21-038.html#rc_data-zarr
- Annex Informative Examples: https://docs.ogc.org/DRAFTS/21-038.html#annex_examples
- add a description for ISEA7H/IGEO7 https://docs.ogc.org/DRAFTS/21-038.html#annex-dggrs-def
VERSION=latest
docker build -f docker/Dockerfile -t crim-ca/pydggsapi:${VERSION} .Setup (as needed).
poetry install --only devBump 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