Class: QgsStacObject

Abstract base class for storing STAC objects.

Added in version 3.44.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: toHtml(), type()

Class Hierarchy

Inheritance diagram of qgis.core.QgsStacObject

Subclasses

QgsStacCatalog

Class for storing a STAC Catalog’s data.

QgsStacItem

Class for storing a STAC Item’s data.

class qgis.core.QgsStacObject[source]

Bases: object

__init__(id: str | None, version: str | None, links: Iterable[QgsStacLink])

Constructor for valid objects

Parameters:
  • id (Optional[str])

  • version (Optional[str])

  • links (Iterable[QgsStacLink])

__init__(a0: QgsStacObject)
Parameters:

a0 (QgsStacObject)

id(self) str[source]

Id of the STAC object

Return type:

str

Returns the STAC links included in the object

Return type:

List[QgsStacLink]

parentUrl(self) str[source]

Return the url stored in the object’s “parent” link

Return type:

str

rootUrl(self) str[source]

Return the url stored in the object’s “root” link

Return type:

str

setId(self, id: str | None)[source]

Sets the id for the STAC object

Parameters:

id (Optional[str])

Sets the STAC links included in the object

Parameters:

links (Iterable[QgsStacLink])

setStacExtensions(self, stacExtensions: Iterable[str | None])[source]

Sets the list of stacExtensions the object implements

Parameters:

stacExtensions (Iterable[Optional[str]])

setStacVersion(self, stacVersion: str | None)[source]

Sets the STAC version the object implements

Parameters:

stacVersion (Optional[str])

stacExtensions(self) List[str][source]

Returns the list of extensions the STAC object implements

Return type:

List[str]

stacVersion(self) str[source]

Returns the STAC version the object implements

Return type:

str

abstract toHtml(self) str[source]

Returns an HTML representation of the STAC object

Return type:

str

abstract type(self) Qgis.StacObjectType[source]

Returns the Type of the STAC object

Return type:

Qgis.StacObjectType

url(self) str[source]

Return the url stored in the object’s “self” link

Return type:

str