Class: QgsMapToolIdentifyFeature

class qgis.gui.QgsMapToolIdentifyFeature(canvas: QgsMapCanvas, vl: QgsVectorLayer = None)

Bases: QgsMapToolIdentify

QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer

Parameters
  • canvas (QgsMapCanvas) – the map canvas

  • vl (QgsVectorLayer = None) – the vector layer. The map tool can be initialized without any layer and can be set afterward.

The QgsMapToolIdentifyFeature class is a map tool to identify a feature on a chosen layer. Once the map tool is enable, user can click on the map canvas to identify a feature. A signal will then be emitted.

canvasReleaseEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

childEvent()
connectNotify()
customEvent()
derivedAttributesForPoint()
disconnectNotify()
featureIdentified

featureIdentified(self, QgsFeature) [signal] featureIdentified(self, int) [signal]

identify()
identifyLayer()
identifyMeshLayer()
identifyRasterLayer()
identifyVectorLayer()
isSignalConnected()
keyPressEvent(self, e: QKeyEvent)
Parameters

e (QKeyEvent) –

receivers()
restoreCanvasPropertiesOverrides()
sender()
senderSignalIndex()
setCanvasPropertiesOverrides()
setLayer(self, vl: QgsVectorLayer)

change the layer used by the map tool to identify

Parameters

vl (QgsVectorLayer) –

timerEvent()
toCanvasCoordinates()
toLayerCoordinates()
toMapCoordinates()
toMapCoordinatesV2()