pygeoapi icon indicating copy to clipboard operation
pygeoapi copied to clipboard

Hateoas issue serving collections

Open gnosys-ccoupal opened this issue 3 years ago • 2 comments

When serving collections, the provider does integrate the links from the .json file, but the stac_extensions, license, and extent keys are not included in the response. The result is the collection cannot be consumed by pystac-client.

Steps to Reproduce serve a stac collection using hateoas

Expected behavior The resulted json would include the stac_extensions, license, and extent keys

Environment

  • OS:
  • Python version:
  • pygeoapi version: latest

work around, in provider/hateoas.py, insert the following lines at line 135 as a hack to resolve

        if resource_type == 'Collection':
                content['extent'] = jsondata['extent']
                content['license'] = jsondata['license']
                content['stac_extensions'] = jsondata['stac_extensions']

gnosys-ccoupal avatar May 09 '22 20:05 gnosys-ccoupal

also relevant maybe: https://github.com/geopython/pygeoapi/issues/1434

allixender avatar Feb 04 '24 17:02 allixender

https://github.com/geopython/pygeoapi/issues/221 and https://github.com/geopython/pygeoapi/issues/1434

allixender avatar Feb 04 '24 17:02 allixender

This Issue has been inactive for 90 days. As per RFC4, in order to manage maintenance burden, it will be automatically closed in 7 days.

github-actions[bot] avatar May 05 '24 03:05 github-actions[bot]

As per RFC4, this Issue has been closed due to there being no activity for more than 90 days.

github-actions[bot] avatar May 12 '24 03:05 github-actions[bot]