Class: QgsTiledSceneTile¶
- class qgis.core.QgsTiledSceneTile¶
Bases:
sip.wrapper
Represents an individual tile from a tiled scene data source.
Added in version 3.34.
QgsTiledSceneTile() Constructor for an invalid tile.
See also
QgsTiledSceneTile(id: int) Constructor for an valid tile.
See also
QgsTiledSceneTile(other:
QgsTiledSceneTile
) Copy constructorMethods
Returns the tile's base URL.
Returns the bounding volume for the tile.
Returns the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.
Returns the tile's unique ID.
Returns
True
if the tile is a valid tile (i.e. not default constructed).Returns additional metadata attached to the tile.
Returns the tile's refinement process.
Returns the resources attached to the tile.
Sets the tile's base URL.
Sets the bounding
volume
for the tile.Sets the tile's geometric
error
, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.Sets additional
metadata
attached to the tile.Sets the tile's refinement
process
.Sets the
resources
attached
to the tile.Sets the tile's
transform
.Returns the tile's transform.
- baseUrl(self) QUrl ¶
Returns the tile’s base URL. If this tile’s resources are relative paths, they would get resolved against this URL.
See also
- Return type:
QUrl
- boundingVolume(self) QgsTiledSceneBoundingVolume ¶
Returns the bounding volume for the tile.
See also
- Return type:
- geometricError(self) float ¶
Returns the tile’s geometric error, which is the error, in scene CRS units, of the tile’s simplified representation of its source geometry.
See also
- Return type:
float
- id(self) int ¶
Returns the tile’s unique ID.
- Return type:
int
- isValid(self) bool ¶
Returns
True
if the tile is a valid tile (i.e. not default constructed).- Return type:
bool
- metadata(self) Dict[str, Any] ¶
Returns additional metadata attached to the tile.
See also
- Return type:
Dict[str, Any]
- refinementProcess(self) Qgis.TileRefinementProcess ¶
Returns the tile’s refinement process.
Refinement determines the process by which a lower resolution parent tile’s content is handled when its higher resolution children are also included.
See also
- Return type:
- resources(self) Dict[str, Any] ¶
Returns the resources attached to the tile.
See also
- Return type:
Dict[str, Any]
- setBaseUrl(self, baseUrl: QUrl)¶
Sets the tile’s base URL. If this tile’s resources are relative paths, they would get resolved against this URL.
See also
- Parameters:
baseUrl (QUrl)
- setBoundingVolume(self, volume: QgsTiledSceneBoundingVolume)¶
Sets the bounding
volume
for the tile.See also
- Parameters:
volume (QgsTiledSceneBoundingVolume)
- setGeometricError(self, error: float)¶
Sets the tile’s geometric
error
, which is the error, in scene CRS units, of the tile’s simplified representation of its source geometry.See also
- Parameters:
error (float)
- setMetadata(self, metadata: Dict[str, Any])¶
Sets additional
metadata
attached to the tile.See also
- Parameters:
metadata (Dict[str)
- setRefinementProcess(self, process: Qgis.TileRefinementProcess)¶
Sets the tile’s refinement
process
.Refinement determines the process by which a lower resolution parent tile’s content is handled when its higher resolution children are also included.
See also
- Parameters:
process (Qgis.TileRefinementProcess)
- setResources(self, resources: Dict[str, Any])¶
Sets the
resources
attached
to the tile.See also
- Parameters:
resources (Dict[str)
- setTransform(self, transform: QgsMatrix4x4)¶
Sets the tile’s
transform
.See also
- Parameters:
transform (QgsMatrix4x4)
- transform(self) QgsMatrix4x4 ¶
Returns the tile’s transform. May be
None
if no transform is associated with the tile.This represents the transformation which must be applied to all geometries from the tile in order to transform them to the dataset’s coordinate reference system.
See also
- Return type: