1.2.6. tds2stac.thumbnails module#
- class tds2stac.thumbnails.Thumbnails[source]#
Bases:
objectThis class is used to create thumbnail images for STAC-Collections and STAC-Items.
- collection(collection_thumbnail: str, collection_overview: str, services: Element, dataset: dict, harvesting_vars: dict, collection_id: str, url: str, catalog: Catalog, collection_thumbnail_link: str, collection_overview_link: str, logger_properties: dict = {})[source]#
A function to create thumbnail images for STAC-Collections.
- Parameters:
collection_thumbnail (str) – The type of thumbnail image for STAC-Collections. It can be
wmsorlink.collection_overview (str) – The type of overview image for STAC-Collections. It can be
wmsorlink.services (list) – A list of services for STAC-Collections.
dataset (dict) – A dictionary of dataset information.
harvesting_vars (dict) – A dictionary of harvesting variables.
collection_id (str) – The ID of STAC-Collections.
url (str) – The URL of STAC-Catalog.
catalog (pystac.Catalog) – A STAC-Catalog.
collection_thumbnail_link (str) – The link of thumbnail image for STAC-Collections when
collection_thumbnailorcollection_overviewset aslink.collection_overview_link (str) – The link of overview image for STAC-Collections when
collection_thumbnailorcollection_overviewset aslink.logger_properties (dict) – A dictionary of logger properties. For more information, please see
Loggerclass.
- item(service: Element, dataset: dict, harvesting_vars: dict, url: str, item: Item, item_thumbnail: bool, item_overview: bool, item_getminmax_thumbnail: bool, logger_properties: dict = {})[source]#
A function to create thumbnail images for STAC-Items.
- Parameters:
service (list) – A list of services for STAC-Items.
dataset (dict) – A dictionary of dataset information.
harvesting_vars (dict) – A dictionary of harvesting variables.
url (str) – The URL of STAC-Catalog.
item (pystac.Item) – A STAC-Item.
item_thumbnail (bool) – A boolean to create thumbnail image for STAC-Items.
item_overview (bool) – A boolean to create overview image for STAC-Items.
item_getminmax_thumbnail (bool) – A boolean to create thumbnail image for STAC-Items based on minmax.
logger_properties (dict) – A dictionary of logger properties. For more information, please see
Loggerclass.