unity-sds / unity-py

Apache License 2.0
2 stars 4 forks source link

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

Closed rtapella closed 5 months ago

rtapella commented 6 months ago

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.

rtapella commented 6 months ago

get info from @ngachung

rtapella commented 6 months ago
mike-gangl commented 5 months ago

Can you provide an update on this ticket?

GodwinShen commented 5 months ago

@rtapella any updates here? Is this resolved by PR https://github.com/unity-sds/unity-py/pull/73?

anilnatha commented 5 months ago

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