QGIS API Documentation 3.29.0-Master (19d7edcfed)
Public Member Functions | List of all members
QgsGeometryParameters Class Reference

Encapsulates parameters under which a geometry operation is performed. More...

#include <qgsgeometry.h>

Public Member Functions

double gridSize () const
 Returns the grid size which will be used to snap vertices of a geometry. More...
 
void setGridSize (double size)
 Sets the grid size which will be used to snap vertices of a geometry. More...
 

Detailed Description

Encapsulates parameters under which a geometry operation is performed.

Since
QGIS 3.28

Definition at line 110 of file qgsgeometry.h.

Member Function Documentation

◆ gridSize()

double QgsGeometryParameters::gridSize ( ) const
inline

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()

Definition at line 124 of file qgsgeometry.h.

◆ setGridSize()

void QgsGeometryParameters::setGridSize ( double  size)
inline

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()

Definition at line 136 of file qgsgeometry.h.


The documentation for this class was generated from the following file: