QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Base configuration for geometry checks. More...
#include <qgsgeometrycheckcontext.h>
Public Member Functions | |
QgsGeometryCheckContext (int precision, const QgsCoordinateReferenceSystem &mapCrs, const QgsCoordinateTransformContext &transformContext, const QgsProject *mProject) | |
Creates a new QgsGeometryCheckContext. More... | |
const QgsProject * | project () const |
The project can be used to resolve additional layers. More... | |
Public Attributes | |
const QgsCoordinateReferenceSystem | mapCrs |
The coordinate system in which calculations should be done. More... | |
const double | reducedTolerance |
The tolerance to allow for in geometry checks. More... | |
const double | tolerance |
The tolerance to allow for in geometry checks. More... | |
const QgsCoordinateTransformContext | transformContext |
The coordinate transform context with which transformations will be done. More... | |
Base configuration for geometry checks.
Definition at line 31 of file qgsgeometrycheckcontext.h.
QgsGeometryCheckContext::QgsGeometryCheckContext | ( | int | precision, |
const QgsCoordinateReferenceSystem & | mapCrs, | ||
const QgsCoordinateTransformContext & | transformContext, | ||
const QgsProject * | mProject | ||
) |
Creates a new QgsGeometryCheckContext.
Definition at line 19 of file qgsgeometrycheckcontext.cpp.
const QgsProject * QgsGeometryCheckContext::project | ( | ) | const |
The project can be used to resolve additional layers.
This must only be accessed from the main thread (i.e. do not access from the collectError method)
Definition at line 28 of file qgsgeometrycheckcontext.cpp.
const QgsCoordinateReferenceSystem QgsGeometryCheckContext::mapCrs |
The coordinate system in which calculations should be done.
Definition at line 61 of file qgsgeometrycheckcontext.h.
const double QgsGeometryCheckContext::reducedTolerance |
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.
Definition at line 56 of file qgsgeometrycheckcontext.h.
const double QgsGeometryCheckContext::tolerance |
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.
Definition at line 48 of file qgsgeometrycheckcontext.h.
const QgsCoordinateTransformContext QgsGeometryCheckContext::transformContext |
The coordinate transform context with which transformations will be done.
Definition at line 66 of file qgsgeometrycheckcontext.h.