File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
python/analysis/auto_generated/vector/geometry_checker
src/analysis/vector/geometry_checker Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff line change 2121#include " qgscoordinatetransformcontext.h"
2222#include " qgsfeaturepool.h"
2323
24+ /* *
25+ * Base configuration for geometry checks.
26+ *
27+ * \since QGIS 3.4
28+ */
2429struct 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:
You can’t perform that action at this time.
0 commit comments