Class: QgsGeometryParameters

class qgis.core.QgsGeometryParameters

Bases: sip.wrapper

Encapsulates parameters under which a geometry operation is performed.

New in version 3.28:

Methods

gridSize

Returns the grid size which will be used to snap vertices of a geometry.

setGridSize

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

setGridSize()

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

gridSize()

Parameters

size (float) –