Skip to content

Commit f0ddef4

Browse files
committed
Dox
1 parent 7ba19dd commit f0ddef4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckcontext.sip.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ struct QgsGeometryCheckContext
1313
QgsGeometryCheckContext( int precision,
1414
const QgsCoordinateReferenceSystem &mapCrs,
1515
const QgsCoordinateTransformContext &transformContext );
16+
1617
const double tolerance;
18+
1719
const double reducedTolerance;
20+
1821
const QgsCoordinateReferenceSystem mapCrs;
22+
1923
const QgsCoordinateTransformContext transformContext;
2024

2125
private:

src/analysis/vector/geometry_checker/qgsgeometrycheckcontext.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,40 @@
2121
#include "qgscoordinatetransformcontext.h"
2222
#include "qgsfeaturepool.h"
2323

24+
/**
25+
* Base configuration for geometry checks.
26+
*
27+
* \since QGIS 3.4
28+
*/
2429
struct ANALYSIS_EXPORT QgsGeometryCheckContext
2530
{
2631
QgsGeometryCheckContext( int precision,
2732
const QgsCoordinateReferenceSystem &mapCrs,
2833
const QgsCoordinateTransformContext &transformContext );
34+
35+
/**
36+
* The tolerance to allow for in geometry checks.
37+
* Will be calculated as pow(10, -precision) in the constructor.
38+
* I.e. if the precision is 4 (decimal digits), this will be 0.0001.
39+
*/
2940
const double tolerance;
41+
42+
/**
43+
* The tolerance to allow for in geometry checks.
44+
* Will be calculated as pow(10, -precision/2) in the constructor.
45+
* I.e. if the precision is 4 (decimal digits), this will be 0.01.
46+
* Should be used for areas, where the precision is squared.
47+
*/
3048
const double reducedTolerance;
49+
50+
/**
51+
* The coordinate system in which calculations should be done.
52+
*/
3153
const QgsCoordinateReferenceSystem mapCrs;
54+
55+
/**
56+
* The coordinate transform context with which transformations will be done.
57+
*/
3258
const QgsCoordinateTransformContext transformContext;
3359

3460
private:

0 commit comments

Comments
 (0)