QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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.
 
void setGridSize (double size)
 Sets the grid size which will be used to snap vertices of a geometry.
 

Detailed Description

Encapsulates parameters under which a geometry operation is performed.

Since
QGIS 3.28

Definition at line 108 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 122 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 134 of file qgsgeometry.h.


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