From d420a966af2fb817ef7eb4b23442ea9f66f1ad29 Mon Sep 17 00:00:00 2001 From: Sarah Jordan Date: Thu, 5 Dec 2024 10:56:59 -0600 Subject: [PATCH] parse extent and license for collections allows compatibility with pystac --- pygeoapi/provider/hateoas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pygeoapi/provider/hateoas.py b/pygeoapi/provider/hateoas.py index 307119d46..0d3ec9876 100644 --- a/pygeoapi/provider/hateoas.py +++ b/pygeoapi/provider/hateoas.py @@ -120,6 +120,8 @@ def get_data_path(self, baseurl, urlpath, entrypath): try: jsondata = _get_json_data(f'{data_path}/collection.json') resource_type = 'Collection' + content['license'] = jsondata['license'] + content['extent'] = jsondata['extent'] except Exception: try: filename = os.path.basename(data_path)