I am working with qgis 1.8 and i want to know how many polygon drawed in one edit sessions is there any signal emitted with qgis ???
1 Answer
The signal QgsVectorLayer.featureAdded( QgsFeatureId fid ) is emitted whenever a new feature is added to the layer.
If you have to group the count by edit sessions you can also connect to the signals editingStarted and editingStopped.
Use like:
layer.featureAdded.connect(yourhandlermethod)
-
Thank you for your answer so in python i have: layer = qgis.utils.iface.activeLayer() i can use it like this : layer.featureAdded( QgsFeatureId fid ) ? Commented Jul 2, 2013 at 9:18
-
-
1