Navigation Menu

Skip to content

Commit

Permalink
Dox
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 30, 2018
1 parent 7ba19dd commit f0ddef4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Expand Up @@ -13,9 +13,13 @@ struct QgsGeometryCheckContext
QgsGeometryCheckContext( int precision,
const QgsCoordinateReferenceSystem &mapCrs,
const QgsCoordinateTransformContext &transformContext );

const double tolerance;

const double reducedTolerance;

const QgsCoordinateReferenceSystem mapCrs;

const QgsCoordinateTransformContext transformContext;

private:
Expand Down
26 changes: 26 additions & 0 deletions src/analysis/vector/geometry_checker/qgsgeometrycheckcontext.h
Expand Up @@ -21,14 +21,40 @@
#include "qgscoordinatetransformcontext.h"
#include "qgsfeaturepool.h"

/**
* Base configuration for geometry checks.
*
* \since QGIS 3.4
*/
struct ANALYSIS_EXPORT QgsGeometryCheckContext
{
QgsGeometryCheckContext( int precision,
const QgsCoordinateReferenceSystem &mapCrs,
const QgsCoordinateTransformContext &transformContext );

/**
* The tolerance to allow for in geometry checks.
* Will be calculated as pow(10, -precision) in the constructor.
* I.e. if the precision is 4 (decimal digits), this will be 0.0001.
*/
const double tolerance;

/**
* The tolerance to allow for in geometry checks.
* Will be calculated as pow(10, -precision/2) in the constructor.
* I.e. if the precision is 4 (decimal digits), this will be 0.01.
* Should be used for areas, where the precision is squared.
*/
const double reducedTolerance;

/**
* The coordinate system in which calculations should be done.
*/
const QgsCoordinateReferenceSystem mapCrs;

/**
* The coordinate transform context with which transformations will be done.
*/
const QgsCoordinateTransformContext transformContext;

private:
Expand Down

0 comments on commit f0ddef4

Please sign in to comment.