QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsgeometrycheckcontext.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsgeometrycheckcontext.h
3  ---------------------
4  begin : September 2018
5  copyright : (C) 2018 Matthias Kuhn
6  email : [email protected]
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSGEOMETRYCHECKCONTEXT_H
17 #define QGSGEOMETRYCHECKCONTEXT_H
18 
19 #include "qgis_analysis.h"
22 #include "qgsfeaturepool.h"
23 
31 class ANALYSIS_EXPORT QgsGeometryCheckContext
32 {
33  public:
34 
39  const QgsCoordinateReferenceSystem &mapCrs,
40  const QgsCoordinateTransformContext &transformContext,
41  const QgsProject *mProject );
42 
48  const double tolerance;
49 
56  const double reducedTolerance;
57 
62 
67 
75  const QgsProject *project() const;
76 
77  private:
78  const QgsProject *mProject;
79 
80  private:
81 #ifdef SIP_RUN
83  {}
84 #endif
85 };
86 
87 #endif // QGSGEOMETRYCHECKCONTEXT_H
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition: qgscoordinatetransformcontext.h:58
qgscoordinatetransformcontext.h
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:95
qgsfeaturepool.h
precision
int precision
Definition: qgswfsgetfeature.cpp:49
QgsGeometryCheckContext
Base configuration for geometry checks.
Definition: qgsgeometrycheckcontext.h:32
QgsGeometryCheckContext::mapCrs
const QgsCoordinateReferenceSystem mapCrs
The coordinate system in which calculations should be done.
Definition: qgsgeometrycheckcontext.h:61
QgsGeometryCheckContext::reducedTolerance
const double reducedTolerance
The tolerance to allow for in geometry checks.
Definition: qgsgeometrycheckcontext.h:56
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition: qgscoordinatereferencesystem.h:206
QgsGeometryCheckContext::tolerance
const double tolerance
The tolerance to allow for in geometry checks.
Definition: qgsgeometrycheckcontext.h:48
qgscoordinatereferencesystem.h
QgsGeometryCheckContext::transformContext
const QgsCoordinateTransformContext transformContext
The coordinate transform context with which transformations will be done.
Definition: qgsgeometrycheckcontext.h:66