The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer.
More...
#include <qgsgeometryoptions.h>
The QgsGeometryOptions class contains options to automatically adjust geometries to constraints on a layer.
- Since
- QGIS 3.4
Definition at line 36 of file qgsgeometryoptions.h.
◆ QgsGeometryOptions()
QgsGeometryOptions::QgsGeometryOptions |
( |
| ) |
|
◆ apply()
void QgsGeometryOptions::apply |
( |
QgsGeometry & |
geometry | ) |
const |
Apply any fixes configured on this class to geometry.
- Since
- QGIS 3.4
Definition at line 54 of file qgsgeometryoptions.cpp.
◆ checkConfiguration()
QVariantMap QgsGeometryOptions::checkConfiguration |
( |
const QString & |
checkId | ) |
const |
◆ checkConfigurationChanged
void QgsGeometryOptions::checkConfigurationChanged |
( |
| ) |
|
|
signal |
Access the configuration for the check checkId.
- Since
- QGIS 3.4
◆ geometryChecks()
QStringList QgsGeometryOptions::geometryChecks |
( |
| ) |
const |
◆ geometryChecksChanged
void QgsGeometryOptions::geometryChecksChanged |
( |
| ) |
|
|
signal |
A list of activated geometry checks.
- Since
- QGIS 3.4
◆ geometryPrecision()
double QgsGeometryOptions::geometryPrecision |
( |
| ) |
const |
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.
- Since
- QGIS 3.4
Definition at line 38 of file qgsgeometryoptions.cpp.
◆ geometryPrecisionChanged
void QgsGeometryOptions::geometryPrecisionChanged |
( |
| ) |
|
|
signal |
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.
- Since
- QGIS 3.4
◆ isActive()
bool QgsGeometryOptions::isActive |
( |
| ) |
const |
◆ readXml()
void QgsGeometryOptions::readXml |
( |
const QDomNode & |
node | ) |
|
◆ removeDuplicateNodes()
bool QgsGeometryOptions::removeDuplicateNodes |
( |
| ) |
const |
Automatically remove duplicate nodes on all geometries which are edited on this layer.
- Since
- QGIS 3.4
Definition at line 27 of file qgsgeometryoptions.cpp.
◆ removeDuplicateNodesChanged
void QgsGeometryOptions::removeDuplicateNodesChanged |
( |
| ) |
|
|
signal |
Automatically remove duplicate nodes on all geometries which are edited on this layer.
- Since
- QGIS 3.4
◆ setCheckConfiguration()
void QgsGeometryOptions::setCheckConfiguration |
( |
const QString & |
checkId, |
|
|
const QVariantMap & |
checkConfiguration |
|
) |
| |
◆ setGeometryChecks()
void QgsGeometryOptions::setGeometryChecks |
( |
const QStringList & |
geometryChecks | ) |
|
◆ setGeometryPrecision()
void QgsGeometryOptions::setGeometryPrecision |
( |
double |
value | ) |
|
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.
- Since
- QGIS 3.4
Definition at line 43 of file qgsgeometryoptions.cpp.
◆ setRemoveDuplicateNodes()
void QgsGeometryOptions::setRemoveDuplicateNodes |
( |
bool |
value | ) |
|
Automatically remove duplicate nodes on all geometries which are edited on this layer.
- Since
- QGIS 3.4
Definition at line 32 of file qgsgeometryoptions.cpp.
◆ writeXml()
void QgsGeometryOptions::writeXml |
( |
QDomNode & |
node | ) |
const |
◆ settingsGeometryValidationDefaultChecks
The documentation for this class was generated from the following files: