Class: QgsStacCollectionList¶
Class for storing a list of STAC Collections, which is typically used to store the data returned by STAC API /collections endpoint.
Added in version 3.44.
Methods
Returns the collections Ownership is not transferred |
|
Returns the url of the collections' "next" link |
|
Returns the total number of available collections If this information was not available by the STAC server, -1 is returned |
|
Returns the number of returned collections |
|
Returns the url of the collections' "prev" link |
|
Returns the url of the collections' "root" link |
|
Returns the collections Caller takes ownership of the returned collections |
|
Returns the url of the collections' "self" link |
- class qgis.core.QgsStacCollectionList[source]¶
Bases:
object
- __init__(collections: Iterable[QgsStacCollection], links: Iterable[QgsStacLink], numberMatched: int = -1)
Constructs a valid list of collections,
- Parameters:
collections (Iterable[QgsStacCollection]) – The STAC Collections to be stored, ownership is transferred
links (Iterable[QgsStacLink]) – A list of references to other documents.
numberMatched (int = -1) – The total number of collections in the parent catalog, collection or total matching results from a STAC API endpoint
Note
ownership of
collections
is transferred. Collections will be deleted when object is destroyed.
- __init__(a0: QgsStacCollectionList)
- Parameters:
- collections(self) List[QgsStacCollection] ¶
Returns the collections Ownership is not transferred
- Return type:
List[QgsStacCollection]
- numberMatched(self) int [source]¶
Returns the total number of available collections If this information was not available by the STAC server, -1 is returned
- Return type:
int
- takeCollections(self) List[QgsStacCollection] ¶
Returns the collections Caller takes ownership of the returned collections
- Return type:
List[QgsStacCollection]