Class: QgsStacAsset¶
Class for storing a STAC asset’s data.
Added in version 3.44.
Methods
Returns a description of the Asset providing additional details, such as how it was processed or created. |
|
Returns the format name for cloud optimized formats |
|
Returns the URI to the asset object |
|
Returns whether the asset is in a cloud optimized format like COG or COPC |
|
Returns the media type of the asset |
|
Returns the roles assigned to the asset. |
|
Returns the displayed title for clients and users. |
|
Returns a uri for the asset if it is a cloud optimized file like COG or COPC |
- class qgis.core.QgsStacAsset[source]¶
Bases:
object
- __init__(href: str | None, title: str | None, description: str | None, mediaType: str | None, roles: Iterable[str | None])
Constructor
- Parameters:
href (Optional[str])
title (Optional[str])
description (Optional[str])
mediaType (Optional[str])
roles (Iterable[Optional[str]])
- __init__(a0: QgsStacAsset)
- Parameters:
a0 (QgsStacAsset)
- description(self) str [source]¶
Returns a description of the Asset providing additional details, such as how it was processed or created. CommonMark 0.29 syntax MAY be used for rich text representation.
- Return type:
str
- formatName(self) str [source]¶
Returns the format name for cloud optimized formats
Added in version 3.42.
- Return type:
str
- isCloudOptimized(self) bool [source]¶
Returns whether the asset is in a cloud optimized format like COG or COPC
Added in version 3.42.
- Return type:
bool
- roles(self) List[str] [source]¶
Returns the roles assigned to the asset. Roles are used to describe the purpose of the asset (eg. thumbnail, data etc).
- Return type:
List[str]
- uri(self) QgsMimeDataUtils.Uri [source]¶
Returns a uri for the asset if it is a cloud optimized file like COG or COPC
Added in version 3.42.
- Return type: