Skip to content

Commit

Permalink
parse extent and license for collections
Browse files Browse the repository at this point in the history
allows compatibility with pystac
  • Loading branch information
sjordan29 committed Dec 5, 2024
1 parent e1f1f3f commit d420a96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygeoapi/provider/hateoas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d420a96

Please sign in to comment.