Class: QgsStacParser¶
SpatioTemporal Asset Catalog JSON parser.
This class parses json data and creates the appropriate STAC Catalog, Collection, Item or ItemCollection.
Added in version 3.44.
- class qgis.core.QgsStacParser[source]¶
Bases:
object- __init__()
Default constructor
- catalog(self) QgsStacCatalog | None¶
Returns the parsed STAC Catalog If parsing failed,
Noneis returned The caller takes ownership of the returned catalog- Return type:
Optional[QgsStacCatalog]
- collections(self) QgsStacCollectionList | None[source]¶
Returns the parsed STAC API Collections If parsing failed,
Noneis returned The caller takes ownership of the returned collections- Return type:
Optional[QgsStacCollectionList]
- setBaseUrl(self, url: QUrl)[source]¶
Sets the base
urlthat will be used to resolve relative links. If not called, relative links will not be resolved to absolute links.- Parameters:
url (QUrl)
- setData(self, data: QByteArray | bytes | bytearray)[source]¶
Sets the JSON data to be parsed
- Parameters:
data (Union[QByteArray, bytes, bytearray])
- type(self) Qgis.StacObjectType[source]¶
Returns the type of the parsed object
- Return type: