pystac.extensions.table#
Implements the Table Extension.
- class pystac.extensions.table.AssetTableExtension(asset: Asset)[source]#
A concrete implementation of
TableExtensionon anAssetthat extends the Asset fields to include properties defined in the Table Extension.This class should generally not be instantiated directly. Instead, call
TableExtension.ext()on anAssetto extend it.
- class pystac.extensions.table.CollectionTableExtension(collection: Collection)[source]#
A concrete implementation of
TableExtensionon aCollectionthat extends the properties of the Item to include properties defined in the Table Extension.This class should generally not be instantiated directly. Instead, call
TableExtension.ext()on anCollectionto extend it.- collection: Collection#
- class pystac.extensions.table.Column(properties: dict[str, Any])[source]#
Object representing a column of a table.
- property col_type: str | None#
Data type of the column. If using a file format with a type system (like Parquet), we recommend you use those types
- property description: str | None#
Detailed multi-line description to explain the column. CommonMark 0.29 syntax MAY be used for rich text representation.
- class pystac.extensions.table.ItemAssetsTableExtension(item_asset: ItemAssetDefinition)[source]#
- asset_defn: ItemAssetDefinition#
- class pystac.extensions.table.ItemTableExtension(item: Item)[source]#
A concrete implementation of
TableExtensionon anItemthat extends the properties of the Item to include properties defined in the Table Extension.This class should generally not be instantiated directly. Instead, call
TableExtension.ext()on anItemto extend it.
- class pystac.extensions.table.T#
Generalized version of
Collection,Item,AssetorItemAssetDefinitionalias of TypeVar(‘T’, ~pystac.collection.Collection, ~pystac.item.Item, ~pystac.asset.Asset, ~pystac.item_assets.ItemAssetDefinition)
- class pystac.extensions.table.Table(properties: dict[str, Any])[source]#
Object containing a high-level summary about a table
- property description: str | None#
Detailed multi-line description to explain the table. CommonMark 0.29 syntax MAY be used for rich text representation.
- class pystac.extensions.table.TableExtensinoHooks[source]#
- prev_extension_ids = {'https://stac-extensions.github.io/table/v1.0.0/schema.json', 'https://stac-extensions.github.io/table/v1.0.1/schema.json', 'https://stac-extensions.github.io/table/v1.1.0/schema.json', 'table'}#
- stac_object_types = {'Collection', 'Feature'}#
- class pystac.extensions.table.TableExtension[source]#
An abstract class that can be used to extend the properties of a
Collection,Item, orAssetwith properties from the Datacube Extension. This class is generic over the type of STAC Object to be extended (e.g.Item,Asset).To create a concrete instance of
TableExtension, use theTableExtension.ext()method. For example:>>> item: pystac.Item = ... >>> tbl_ext = TableExtension.ext(item)
- classmethod ext(obj: T, add_if_missing: bool = False) TableExtension[T][source]#
Extend the given STAC Object with properties from the Table Extension.
This extension can be applied to instances of
Collection,ItemorAsset.- Raises:
pystac.ExtensionTypeError – If an invalid object type is passed.