You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with cog_assets = item.get_assets(media_type=pystac.MediaType.COG)
Since roles is a list, we might need a flag to control whether you need any / all of the roles specified to be returned. But as a start, I think allowing a single role and returning any assets with that would be best.
The text was updated successfully, but these errors were encountered:
Item.get_links
includes some arguments to filter which links are returned byrel
andmedia_type
:pystac/pystac/stac_object.py
Lines 115 to 119 in 876b60a
Item.get_assets
would be more useful if it could filter onroles
andmedia_type
. We could replacewith
cog_assets = item.get_assets(media_type=pystac.MediaType.COG)
Since
roles
is a list, we might need a flag to control whether you need any / all of the roles specified to be returned. But as a start, I think allowing a singlerole
and returning any assets with that would be best.The text was updated successfully, but these errors were encountered: