Class: QgsPluginLayerType

class qgis.core.QgsPluginLayerType

Bases: sip.wrapper

Class for creating plugin specific layers

Methods

createLayer

Returns new layer of this type.

name

rtype:

str

showLayerProperties

Show plugin layer properties dialog.

createLayer(self) QgsPluginLayer | None

Returns new layer of this type. Return None on error

createLayer(self, uri: Optional[str]) -> Optional[QgsPluginLayer] Returns new layer of this type, using layer URI (specific to this plugin layer type). Return None on error.

Return type:

Optional[QgsPluginLayer]

name(self) str
Return type:

str

showLayerProperties(self, layer: QgsPluginLayer | None) bool

Show plugin layer properties dialog. Return False if the dialog cannot be shown.

Parameters:

layer (Optional[QgsPluginLayer])

Return type:

bool