Class: QgsVectorLayerUndoCommandAddFeature

class qgis.core.QgsVectorLayerUndoCommandAddFeature(buffer: QgsVectorLayerEditBuffer, f: QgsFeature)

Bases: QgsVectorLayerUndoCommand

Constructor for QgsVectorLayerUndoCommandAddFeature

Parameters
  • buffer – associated edit buffer

  • f – feature to add to layer

Undo command for adding a feature to a vector layer.

Methods

redo

undo

redo(self)
undo(self)