pystac.extensions.item_assets#
Implements the Item Assets Definition Extension.
- class pystac.extensions.item_assets.AssetDefinition(*args: Any, **kwargs: Any)[source]#
DEPRECATED
Deprecated since version 1.12.0: Use
ItemAssetDefinition
instead.
- class pystac.extensions.item_assets.ItemAssetsExtension(collection: Collection)[source]#
DEPRECATED
Deprecated since version 1.12.0: Use
item_assets
instead.- collection: Collection#
- classmethod ext(obj: Collection, add_if_missing: bool = False) ItemAssetsExtension [source]#
Extends the given
Collection
with properties from the Item Assets Extension.- Raises:
pystac.ExtensionTypeError – If an invalid object type is passed.
- property item_assets: dict[str, ItemAssetDefinition]#
Gets or sets a dictionary of assets that can be found in member Items. Maps the asset key to an
AssetDefinition
instance.
- class pystac.extensions.item_assets.ItemAssetsExtensionHooks[source]#
- migrate(obj: dict[str, Any], version: STACVersionID, info: STACJSONDescription) None [source]#
Migrate a STAC Object in dict format from a previous version. The base implementation will update the stac_extensions to the latest schema ID. This method will only be called for STAC objects that have been identified as a previous version of STAC. Implementations should directly manipulate the obj dict. Remember to call super() in order to change out the old ‘stac_extension’ entry with the latest schema URI.
- prev_extension_ids = {'asset', 'item-assets'}#
- stac_object_types = {'Collection'}#