1.2.3. insupdel4stac.inserter module#
- class insupdel4stac.inserter.Inserter(collections_list: list, service_type: str, table_details: list | None = None, loader: Loader | None = None, pgstacdb: PgstacDB | None = None, pgstac_properties: dict | None = None, stacapi_properties: dict | None = None, logger_properties: dict | None = None)[source]#
Bases:
objectThis is a class for ingesting items and collections into pgSTAC and STAC-API.
- Parameters:
collections_list (list) – A list of collections to be ingested.
service_type (str) – The service type to be used for ingestion. It can be
pgstacorstacapi.table_details (list, optional) – A list of dictionaries that contains the details of the tables. Defaults to None.
loader (Loader, optional) – The loader object to be used for ingestion.
pgstacdb (PgstacDB, optional) – The PgstacDB object to be used for deleting.
pgstac_properties (dict, optional) – The properties of pgstac. Defaults to None.
stacapi_properties (dict, optional) – The properties of stacapi. Defaults to None.
logger_properties (dict, optional) – The properties of logger. Defaults to None.
- ingester(collection: Collection, service: str, loader: Loader | None = None, table_details: list | None = None)[source]#
This function ingests the items and collections into pgSTAC and STAC-API according to the
service_typeandtable_details.
- pgstac_collection_ingest(collection_self_path: str, loader: Loader)[source]#
This function ingests the collections into pgSTAC.
- pgstac_item_ingest(item: Item, PgstacDB: PgstacDB)[source]#
This function ingests the items into pgSTAC.