Class: QgsGeometryParameters

Encapsulates parameters under which a geometry operation is performed.

Added 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.

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

setGridSize()

Return type:

float

setGridSize(self, size: float)[source]

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)