Class: QgsVectorLayerUndoCommandChangeGeometry

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

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoCommandChangeGeometry

Base classes

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

class qgis.core.QgsVectorLayerUndoCommandChangeGeometry[source]

Bases: QgsVectorLayerUndoCommand

__init__(buffer: QgsVectorLayerEditBuffer | None, fid: int, newGeom: QgsGeometry)

Constructor for QgsVectorLayerUndoCommandChangeGeometry

Parameters:
  • buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer

  • fid (int) – feature ID of feature to modify geometry of

  • newGeom (QgsGeometry) – new geometry for feature