Class: QgsTiledSceneLayer¶
- class qgis.core.QgsTiledSceneLayer¶
Bases:
QgsMapLayer
Represents a map layer supporting display of tiled scene objects.
Added in version 3.34.
QgsTiledSceneLayer(uri: str = ‘’, baseName: str = ‘’, provider: str = ‘’, options: QgsTiledSceneLayer.LayerOptions = QgsTiledSceneLayer.LayerOptions()) Constructor for QgsTiledSceneLayer.
Methods
Add error message
- rtype:
QgsTiledSceneLayer
- param rendererContext:
- rtype:
QgsTiledSceneDataProvider
- param source:
- rtype:
QgsMapLayerElevationProperties
- param source:
- rtype:
QgsRectangle
Checks whether a new set of dependencies will introduce a cycle this method is now deprecated and always return
False
, because circular dependencies are now correctly managed.- rtype:
str
Invalidates the WGS84 extent.
- rtype:
Tuple[str, bool]
- rtype:
Tuple[str, bool]
Read style data common to all layer types
Read custom properties from project file.
- param node:
Read style manager's configuration (if any).
- param node:
- param layerNode:
Returns the 2D renderer for the tiled scene.
Sets error message
Sets the extent
Sets the extent
Sets the
providerType
(provider key)Sets the 2D
renderer
for the tiled scene.- param transformContext:
Sets whether layer is valid or not
Write style data common to all layer types
Write custom properties to project file.
- param node:
Write style manager's configuration (if exists).
- param node:
- param layerNode:
- class LayerOptions(transformContext: QgsCoordinateTransformContext = QgsCoordinateTransformContext())¶
Bases:
sip.wrapper
Constructor for LayerOptions with optional
transformContext
.QgsTiledSceneLayer.LayerOptions(QgsTiledSceneLayer.LayerOptions)
- loadDefaultStyle¶
- skipCrsValidation¶
- transformContext¶
- appendError(self, error: QgsErrorMessage)¶
Add error message
- childEvent(self, QChildEvent)¶
- clone(self) QgsTiledSceneLayer ¶
- Return type:
- connectNotify(self, QMetaMethod)¶
- createMapRenderer(self, rendererContext: QgsRenderContext) QgsMapLayerRenderer ¶
- Parameters:
rendererContext (QgsRenderContext)
- Return type:
- customEvent(self, QEvent)¶
- dataProvider(self) QgsTiledSceneDataProvider ¶
- Return type:
- decodedSource(self, source: str, dataProvider: str, context: QgsReadWriteContext) str ¶
- Parameters:
source (str)
dataProvider (str)
context (QgsReadWriteContext)
- Return type:
str
- disconnectNotify(self, QMetaMethod)¶
- elevationProperties(self) QgsMapLayerElevationProperties ¶
- Return type:
- encodedSource(self, source: str, context: QgsReadWriteContext) str ¶
- Parameters:
source (str)
context (QgsReadWriteContext)
- Return type:
str
- extent(self) QgsRectangle ¶
- Return type:
- hasDependencyCycle(self, Iterable[QgsMapLayerDependency]) bool ¶
Checks whether a new set of dependencies will introduce a cycle this method is now deprecated and always return
False
, because circular dependencies are now correctly managed.Deprecated since version QGIS: 3.10
- htmlMetadata(self) str ¶
- Return type:
str
- invalidateWgs84Extent(self)¶
Invalidates the WGS84 extent. If FlagTrustLayerMetadata is enabled, the extent is not invalidated because we want to trust metadata whatever happens.
Added in version 3.20.
- isSignalConnected(self, QMetaMethod) bool ¶
- loadDefaultMetadata(self) Tuple[str, bool] ¶
- Return type:
Tuple[str, bool]
- loadDefaultStyle(self) Tuple[str, bool] ¶
- Return type:
Tuple[str, bool]
- readCommonStyle(self, layerElement: QDomElement, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories)¶
Read style data common to all layer types
- readCustomProperties(self, layerNode: QDomNode, keyStartsWith: str = '')¶
Read custom properties from project file.
- Parameters:
layerNode – note to read from
keyStartsWith – reads only properties starting with the specified string (or all if the string is empty)
- readStyle(self, node: QDomNode, errorMessage: str, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories) bool ¶
- Parameters:
node (QDomNode)
errorMessage (str)
context (QgsReadWriteContext)
categories (Union[QgsMapLayer.StyleCategories)
- Return type:
bool
- readStyleManager(self, layerNode: QDomNode)¶
Read style manager’s configuration (if any). To be called by subclasses.
- readSymbology(self, node: QDomNode, errorMessage: str, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories) bool ¶
- Parameters:
node (QDomNode)
errorMessage (str)
context (QgsReadWriteContext)
categories (Union[QgsMapLayer.StyleCategories)
- Return type:
bool
- readXml(self, layerNode: QDomNode, context: QgsReadWriteContext) bool ¶
- Parameters:
layerNode (QDomNode)
context (QgsReadWriteContext)
- Return type:
bool
- receivers(self, PYQT_SIGNAL) int ¶
- renderer(self) QgsTiledSceneRenderer ¶
Returns the 2D renderer for the tiled scene.
See also
- Return type:
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setExtent(self, rect: QgsRectangle)¶
Sets the extent
- setProviderType(self, providerType: str)¶
Sets the
providerType
(provider key)
- setRenderer(self, renderer: QgsTiledSceneRenderer)¶
Sets the 2D
renderer
for the tiled scene.Ownership of
renderer
is transferred to the layer.See also
- Parameters:
renderer (QgsTiledSceneRenderer)
- setTransformContext(self, transformContext: QgsCoordinateTransformContext)¶
- Parameters:
transformContext (QgsCoordinateTransformContext)
- setValid(self, valid: bool)¶
Sets whether layer is valid or not
- timerEvent(self, QTimerEvent)¶
- writeCommonStyle(self, layerElement: QDomElement, document: QDomDocument, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories)¶
Write style data common to all layer types
- writeCustomProperties(self, layerNode: QDomNode, doc: QDomDocument)¶
Write custom properties to project file.
- writeStyle(self, node: QDomNode, doc: QDomDocument, errorMessage: str, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories) bool ¶
- Parameters:
node (QDomNode)
doc (QDomDocument)
errorMessage (str)
context (QgsReadWriteContext)
categories (Union[QgsMapLayer.StyleCategories)
- Return type:
bool
- writeStyleManager(self, layerNode: QDomNode, doc: QDomDocument)¶
Write style manager’s configuration (if exists). To be called by subclasses.
- writeSymbology(self, node: QDomNode, doc: QDomDocument, errorMessage: str, context: QgsReadWriteContext, categories: QgsMapLayer.StyleCategories | QgsMapLayer.StyleCategory = QgsMapLayer.AllStyleCategories) bool ¶
- Parameters:
node (QDomNode)
doc (QDomDocument)
errorMessage (str)
context (QgsReadWriteContext)
categories (Union[QgsMapLayer.StyleCategories)
- Return type:
bool
- writeXml(self, layerNode: QDomNode, doc: QDomDocument, context: QgsReadWriteContext) bool ¶
- Parameters:
layerNode (QDomNode)
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
bool