Class: QgsGeometryParameters¶
Encapsulates parameters under which a geometry operation is performed.
Added 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.  | 
- class qgis.core.QgsGeometryParameters[source]¶
 Bases:
object- gridSize(self) float[source]¶
 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)[source]¶
 Sets the grid
sizewhich 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)