Class: QgsGeometryOptions¶
-
class
qgis.core.
QgsGeometryOptions
¶ Bases:
PyQt5.QtCore.QObject
Create a new QgsGeometryOptions object.
The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer.
New in version 3.4: Enums
Methods
Apply any fixes configured on this class to
geometry
.Access the configuration for the check
checkId
.A list of activated geometry checks.
The precision in which geometries on this layer should be saved.
Determines if at least one fix is enabled.
Read the geometry options from
node
.Automatically remove duplicate nodes on all geometries which are edited on this layer.
Set the configuration for the check
checkId
.A list of activated geometry checks.
The precision in which geometries on this layer should be saved.
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Write the geometry options to the
node
.Signals
Access the configuration for the check
checkId
.A list of activated geometry checks.
The precision in which geometries on this layer should be saved.
Automatically remove duplicate nodes on all geometries which are edited on this layer.
Attributes
-
apply
(self, geometry: QgsGeometry)¶ Apply any fixes configured on this class to
geometry
.New in version 3.4.
-
checkConfiguration
(self, checkId: str) → Dict[str, Any]¶ Access the configuration for the check
checkId
.New in version 3.4.
-
checkConfigurationChanged
¶ Access the configuration for the check
checkId
.New in version 3.4: [signal]
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
geometryChecks
(self) → List[str]¶ A list of activated geometry checks.
New in version 3.4.
-
geometryChecksChanged
¶ A list of activated geometry checks.
New in version 3.4: [signal]
-
geometryPrecision
(self) → float¶ The precision in which geometries on this layer should be saved. Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
New in version 3.4.
-
geometryPrecisionChanged
¶ The precision in which geometries on this layer should be saved. Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
New in version 3.4: [signal]
-
isActive
(self) → bool¶ Determines if at least one fix is enabled.
New in version 3.4.
-
isSignalConnected
()¶
-
readXml
(self, node: QDomNode)¶ Read the geometry options from
node
.New in version 3.4.
-
receivers
()¶
-
removeDuplicateNodes
(self) → bool¶ Automatically remove duplicate nodes on all geometries which are edited on this layer.
New in version 3.4.
-
removeDuplicateNodesChanged
¶ Automatically remove duplicate nodes on all geometries which are edited on this layer.
New in version 3.4: [signal]
-
sender
()¶
-
senderSignalIndex
()¶
-
setCheckConfiguration
(self, checkId: str, checkConfiguration: Dict[str, Any])¶ Set the configuration for the check
checkId
.New in version 3.4.
-
setGeometryChecks
(self, geometryChecks: Iterable[str])¶ A list of activated geometry checks.
New in version 3.4.
-
setGeometryPrecision
(self, value: float)¶ The precision in which geometries on this layer should be saved. Geometries which are edited on this layer will be rounded to multiples of this value (snap to grid). Set to 0.0 to disable.
New in version 3.4.
-
setRemoveDuplicateNodes
(self, value: bool)¶ Automatically remove duplicate nodes on all geometries which are edited on this layer.
New in version 3.4.
-
timerEvent
()¶
-
writeXml
(self, node: QDomNode)¶ Write the geometry options to the
node
.New in version 3.4.
-