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
Other custom fields, or fields from other extensions may also be included in the Asset object.
However, there is not currently a Pythonic way to do this in PySTAC. The AssetDefinition.create and AssetDefinition.apply methods only accept title, description, media_type and roles arguments, so the only way to add something like a raster:bands field to the Asset Definition is by initializing it with a dictionary that includes that property.
It seems like it would be helpful to have an extra_fields argument to both create and apply that allows additional properties to be passed in.
The text was updated successfully, but these errors were encountered:
The Item Assets Definition Extension states:
However, there is not currently a Pythonic way to do this in PySTAC. The
AssetDefinition.create
andAssetDefinition.apply
methods only accepttitle
,description
,media_type
androles
arguments, so the only way to add something like araster:bands
field to the Asset Definition is by initializing it with a dictionary that includes that property.It seems like it would be helpful to have an
extra_fields
argument to bothcreate
andapply
that allows additional properties to be passed in.The text was updated successfully, but these errors were encountered: