Class: QgsTiledSceneIndex¶
- class qgis.core.QgsTiledSceneIndex¶
Bases:
sip.wrapper
An index for tiled scene data providers.
This is a shallow copy, implicitly shared container for an underlying
QgsAbstractTiledSceneIndex
implementation.The class is thread safe and can be used safely across multiple threads or transferred between threads.
Added in version 3.34.
QgsTiledSceneIndex(other:
QgsTiledSceneIndex
) Copy constructorMethods
Returns the availability for a tile's children.
Returns a list of the tile IDs of any children for the tile with matching
id
.Populates the tile with the given
id
by fetching any sub datasets attached to the tile.Returns the tile with matching
id
, or an invalid tile if the matching tile is not available.Returns the list of tile IDs which match the given
request
.Returns
True
if the index is valid.Returns the tile ID of the parent tile of the tile with matching
id
, or -1 if the tile has no parent.Retrieves index content for the specified
uri
.Returns the root tile for the index.
- childAvailability(self, id: int) Qgis.TileChildrenAvailability ¶
Returns the availability for a tile’s children.
See also
- Parameters:
id (int)
- Return type:
- childTileIds(self, id: int) List[int] ¶
Returns a list of the tile IDs of any children for the tile with matching
id
.See also
- Parameters:
id (int)
- Return type:
List[int]
- fetchHierarchy(self, id: int, feedback: QgsFeedback = None) bool ¶
Populates the tile with the given
id
by fetching any sub datasets attached to the tile.Blocks while the child fetching is in progress.
Returns
True
if the population was successful.See also
- Parameters:
id (int)
feedback (
QgsFeedback
= None)
- Return type:
bool
- getTile(self, id: int) QgsTiledSceneTile ¶
Returns the tile with matching
id
, or an invalid tile if the matching tile is not available.- Parameters:
id (int)
- Return type:
- getTiles(self, request: QgsTiledSceneRequest) List[int] ¶
Returns the list of tile IDs which match the given
request
.May return an empty list if no data satisfies the request.
- Parameters:
request (QgsTiledSceneRequest)
- Return type:
List[int]
- isValid(self) bool ¶
Returns
True
if the index is valid.- Return type:
bool
- parentTileId(self, id: int) int ¶
Returns the tile ID of the parent tile of the tile with matching
id
, or -1 if the tile has no parent.See also
- Parameters:
id (int)
- Return type:
int
- retrieveContent(self, uri: str, feedback: QgsFeedback = None) QByteArray ¶
Retrieves index content for the specified
uri
.The content is cached within the index, so multiple calls are potentially cost-free.
The optional
feedback
argument can be used the cancel the request early.- Parameters:
uri (str)
feedback (
QgsFeedback
= None)
- Return type:
QByteArray
- rootTile(self) QgsTiledSceneTile ¶
Returns the root tile for the index.
- Return type: