unity-sds/unity-py

Support asset "roles" for STAC in Data Catalog data Searches

Closed this issue · 5 comments

STAC results from DAPA ciurrently utilize the asset keys of "data", "metadata", "browse", and a few others. This does not allow for the support of multiple data values without knowing their keys. To work around this, the asset key should be unique (based on the asset filename) and the asset-role will be added to indicate the type of data: https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#asset-roles

This means the code here:

https://github.com/unity-sds/unity-py/blob/main/unity_sds_client/services/data_service.py#L67-L71

Will need to be updated to A) iterate over the stac assets and create DataFiles instead of looking specifically for a asset with key data.

get info from @ngachung

Can you provide an update on this ticket?

@rtapella any updates here? Is this resolved by PR #73?

@GodwinShen Yes, PR #73 did resolve this ticket.