Subgroup: Plugin
Class: QgsPluginLayerRegistry¶
-
class
qgis.core.
QgsPluginLayerRegistry
¶ Bases:
sip.wrapper
A registry of plugin layers types.
QgsPluginLayerRegistry is not usually directly created, but rather accessed through
QgsApplication.pluginLayerRegistry()
Methods
addPluginLayerType
Add plugin layer type (take ownership) and return true on success createLayer
Returns new layer if corresponding plugin has been found else returns a None. pluginLayerType
Return plugin layer type metadata or NULL if doesn’t exist pluginLayerTypes
List all known layer types removePluginLayerType
Remove plugin layer type and return true on success Attributes
-
addPluginLayerType
(self, pluginLayerType: QgsPluginLayerType) → bool¶ Add plugin layer type (take ownership) and return true on success
-
createLayer
(self, typeName: str, uri: str = '') → QgsPluginLayer¶ Returns new layer if corresponding plugin has been found else returns a None.
Note
parameter uri has been added in QGIS 2.10
-
pluginLayerType
(self, typeName: str) → QgsPluginLayerType¶ Return plugin layer type metadata or NULL if doesn’t exist
-
pluginLayerTypes
(self) → List[str]¶ List all known layer types since QGIS *
-
removePluginLayerType
(self, typeName: str) → bool¶ Remove plugin layer type and return true on success
-