Class: QgsVectorLayerUndoCommandChangeGeometry

class qgis.core.QgsVectorLayerUndoCommandChangeGeometry

Bases: QgsVectorLayerUndoCommand

Undo command for modifying the geometry of a feature from a vector layer.

QgsVectorLayerUndoCommandChangeGeometry(buffer: QgsVectorLayerEditBuffer, fid: int, newGeom: QgsGeometry) Constructor for QgsVectorLayerUndoCommandChangeGeometry

Parameters
  • buffer – associated edit buffer

  • fid – feature ID of feature to modify geometry of

  • newGeom

    new geometry for feature

    Methods

    id

    rtype

    int

    mergeWith

    param other

    redo

    undo

id(self)int
Return type

int

mergeWith(self, other: QUndoCommand)bool
Parameters

other (QUndoCommand) –

Return type

bool

redo(self)
undo(self)