Class: QgsGeometryParameters¶
- class qgis.core.QgsGeometryParameters¶
Bases:
sip.wrapper
Encapsulates parameters under which a geometry operation is performed.
New in version 3.28:
Methods
Returns the grid size which will be used to snap vertices of a geometry.
Sets the grid
size
which will be used to snap vertices of a geometry.- gridSize(self) float ¶
Returns the grid size which will be used to snap vertices of a geometry.
This parameter is used to control the grid size (or precision) for GEOS geometry operations. Output geometry result vertices will be computed on that same precision grid.
A value of -1 indicates that no precision reduction will be applied.
See also
- Return type:
float
- setGridSize(self, size: float)¶
Sets the grid
size
which will be used to snap vertices of a geometry.This parameter is used to control the grid size (or precision) for GEOS geometry operations. Output geometry result vertices will be computed on that same precision grid.
A value of -1 indicates that no precision reduction will be applied.
See also
- Parameters:
size (float) –