Class: QgsPluginLayerRegistry¶
A registry of plugin layers types.
QgsPluginLayerRegistry is not usually directly created, but
rather accessed through QgsApplication.pluginLayerRegistry().
List of all members, including inherited members
Methods
Add plugin layer type (take ownership) and return |
|
Returns new layer if corresponding plugin has been found else returns |
|
Returns plugin layer type metadata or |
|
List all known layer types |
|
Remove plugin layer type and return |
- class qgis.core.QgsPluginLayerRegistry[source]¶
Bases:
object- addPluginLayerType(self, pluginLayerType: QgsPluginLayerType | None) bool[source]¶
Add plugin layer type (take ownership) and return
Trueon success- Parameters:
pluginLayerType (Optional[QgsPluginLayerType])
- Return type:
bool
- createLayer(self, typeName: str | None, uri: str | None = '') QgsPluginLayer | None[source]¶
Returns new layer if corresponding plugin has been found else returns
None.Note
parameter uri has been added in QGIS 2.10
- Parameters:
typeName (Optional[str])
uri (Optional[str] = '')
- Return type:
Optional[QgsPluginLayer]
- pluginLayerType(self, typeName: str | None) QgsPluginLayerType | None[source]¶
Returns plugin layer type metadata or
Noneif doesn’t exist- Parameters:
typeName (Optional[str])
- Return type:
Optional[QgsPluginLayerType]