sta2stac.analysers.item_info_retriever module#

class sta2stac.analysers.item_info_retriever.ItemInfoHandler(logger_properties: dict = {})[source]#

Bases: object

This class is responsible for managing the STAC item’s metadata. It retrieves the STAC item’s automatically generated ID, title, and description. This class can also sed to override the STAC item’s automatically generated ID, Title, and Description with those specified by the user.

Parameters:

logger_properties (dict) – A dictionary containing the logger properties.

get_entity_tuples_info(sta_link: str, sta_version: str, entity: str, filter: str = '', requests_properties: dict = {})[source]#

Get the STAC item’s automatically generated ID, title, and description.

Parameters:
  • sta_link (str) – The SensorThings API link.

  • sta_version (str) – The SensorThings API version.

  • entity (str) – The SensorThings API entity.

  • filter (str) – The SensorThings API filter.

  • requests_properties (dict) – A dictionary containing the requests properties.

get_thing_info(thing_json: dict)[source]#

A function to get the automatically generated ID, title, and description of a specific Thing.

logger_properties: dict#

A dictionary containing the logger properties. By default it sets to None. You can look at keys in Logger class.

replace_item_info(thing_json: dict, item_tuples: list = [])[source]#

A function to replace the automatically generated ID, title, and description of a specific Thing with those specified by the user.