Skip to content

Commit

Permalink
expose csv assets in job results as STAC items
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Jun 5, 2024
1 parent d262197 commit 92c3a44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openeo_driver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,8 @@ def job_result_item_url(item_id) -> str:

for filename, metadata in result_assets.items():
if ("data" in metadata.get("roles", []) and
any(media_type in metadata.get("type", "") for media_type in ["geotiff", "netcdf"])):
any(media_type in metadata.get("type", "") for media_type in
["geotiff", "netcdf", "text/csv"])):
links.append(
{"rel": "item", "href": job_result_item_url(item_id=filename), "type": stac_item_media_type}
)
Expand Down

0 comments on commit 92c3a44

Please sign in to comment.