Skip to content

Commit

Permalink
Support parsing STAC Item datetime (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalxas committed Apr 21, 2023
1 parent a06dc2b commit afe0f47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycsw/core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,9 @@ def _parse_stac_resource(context, repos, record):
if 'end_datetime' in record['properties']:
_set(context, recobj, 'pycsw:TempExtent_end', record['properties']['end_datetime'])

if 'datetime' in record['properties']:
_set(context, recobj, 'pycsw:Date', record['properties']['datetime'])

if 'eo:cloud_cover' in record['properties']:
_set(context, recobj, 'pycsw:CloudCover', record['properties']['eo:cloud_cover'])

Expand Down

0 comments on commit afe0f47

Please sign in to comment.