Subgroup: Vector
Class: QgsVectorLayerEditPassthrough¶
-
class
qgis.core.
QgsVectorLayerEditPassthrough
(layer: QgsVectorLayer)¶ Bases:
qgis._core.QgsVectorLayerEditBuffer
Methods
addAttribute
addFeature
addFeatures
addedAttributes
Returns a list of added attributes fields which are not committed. addedFeatures
Returns a map of new features which are not committed. blockSignals
changeAttributeValue
changeGeometry
changedAttributeValues
Returns a map of features with changed attributes values which are not committed. changedGeometries
Returns a map of features with changed geometries which are not committed. childEvent
children
commitChanges
connectNotify
customEvent
deleteAttribute
deleteFeature
deleteFeatures
deleteLater
deletedAttributeIds
Returns a list of deleted attributes fields which are not committed. deletedFeatureIds
Returns a list of deleted feature IDs which are not committed. disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] handleAttributeAdded
handleAttributeDeleted
inherits
installEventFilter
isAttributeDeleted
Returns true if the specified attribute has been deleted but not committed. isFeatureAdded
Returns true if the specified feature ID has been added but not committed. isFeatureAttributesChanged
Returns true if the specified feature ID has had an attribute changed but not committed. isFeatureDeleted
Returns true if the specified feature ID has been deleted but not committed. isFeatureGeometryChanged
Returns true if the specified feature ID has had its geometry changed but not committed. isModified
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
renameAttribute
rollBack
sender
senderSignalIndex
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
undoIndexChanged
update
Update underlying data with a SQL query embedded in a transaction. updateAttributeMapIndex
updateChangedAttributes
updateFeatureGeometry
updateFields
updateLayerFields
Attributes
attributeAdded
attributeAdded(self, int) [signal] attributeDeleted
attributeDeleted(self, int) [signal] attributeRenamed
Emitted when an attribute has been renamed attributeValueChanged
attributeValueChanged(self, int, int, Any) [signal] committedAttributeValuesChanges
committedAttributeValuesChanges(self, str, object) [signal] committedAttributesAdded
committedAttributesAdded(self, str, object) [signal] committedAttributesDeleted
Signals emitted after committing changes [signal] committedAttributesRenamed
Emitted after committing an attribute rename committedFeaturesAdded
committedFeaturesAdded(self, str, object) [signal] committedFeaturesRemoved
committedFeaturesRemoved(self, str, object) [signal] committedGeometriesChanges
committedGeometriesChanges(self, str, object) [signal] destroyed
destroyed(self, QObject = None) [signal] featureAdded
featureAdded(self, int) [signal] featureDeleted
featureDeleted(self, int) [signal] geometryChanged
Emitted when a feature’s geometry is changed. layerModified
This signal is emitted when modifications has been done on layer [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
addAttribute
(self, field: QgsField) → bool¶
-
addFeature
(self, f: QgsFeature) → bool¶
-
addFeatures
(self, features: object) → bool¶
-
changeAttributeValue
(self, fid: int, field: int, newValue: Any, oldValue: Any = None) → bool¶
-
changeGeometry
(self, fid: int, geom: QgsGeometry) → bool¶
-
childEvent
()¶
-
commitChanges
(self, commitErrors: Iterable[str]) → bool¶
-
connectNotify
()¶
-
customEvent
()¶
-
deleteAttribute
(self, attr: int) → bool¶
-
deleteFeature
(self, fid: int) → bool¶
-
deleteFeatures
(self, fids: object) → bool¶
-
disconnectNotify
()¶
-
handleAttributeAdded
()¶
-
handleAttributeDeleted
()¶
-
isModified
(self) → bool¶
-
isSignalConnected
()¶
-
receivers
()¶
-
renameAttribute
(self, attr: int, newName: str) → bool¶
-
rollBack
(self)¶
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-
undoIndexChanged
()¶
-
update
(self, transaction: QgsTransaction, sql: str) → bool¶ Update underlying data with a SQL query embedded in a transaction.
Parameters: - transaction – Transaction in which the sql query has been run
- sql – The SQL query updating data
Returns: true if the undo/redo command is well added to the stack, false otherwise
New in version 3.0.
-
updateAttributeMapIndex
()¶
-
updateChangedAttributes
()¶
-
updateFeatureGeometry
()¶
-
updateFields
()¶
-
updateLayerFields
()¶
-