Class: QgsPluginLayer¶
Base class for plugin layers. These can be implemented by plugins and
registered in QgsPluginLayerRegistry.
In order to be readable from project files, they should set these attributes in layer DOM node: “type” = “plugin” “name” = “your_layer_type”
Class Hierarchy¶
Base classes¶
Base class for all map layer types. This is the base class for all map layer types (vector, raster). |
|
- class qgis.core.QgsPluginLayer[source]¶
Bases:
QgsMapLayer- clone(self) QgsPluginLayer | None[source]¶
Returns a new instance equivalent to this one.
- Return type:
Optional[QgsPluginLayer]
- Returns:
a new layer instance
- pluginLayerType(self) str[source]¶
Returns plugin layer type (the same as used in
QgsPluginLayerRegistry)- Return type:
str
- setExtent(self, extent: QgsRectangle)[source]¶
Sets extent of the layer
- Parameters:
extent (QgsRectangle)