QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
analysis
vector
geometry_checker
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 : matthias@opengis.ch
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"
20
#include "
qgscoordinatereferencesystem.h
"
21
#include "
qgscoordinatetransformcontext.h
"
22
#include "
qgsfeaturepool.h
"
23
31
class
ANALYSIS_EXPORT
QgsGeometryCheckContext
32
{
33
public
:
44
QgsGeometryCheckContext
(
45
int
precision,
const
QgsCoordinateReferenceSystem
&
mapCrs
,
const
QgsCoordinateTransformContext
&
transformContext
,
const
QgsProject
*mProject =
nullptr
,
const
int
uniqueIdFieldIndex
= -1
46
);
47
53
const
double
tolerance
;
54
61
const
double
reducedTolerance
;
62
66
const
QgsCoordinateReferenceSystem
mapCrs
;
67
71
const
QgsCoordinateTransformContext
transformContext
;
72
78
const
int
uniqueIdFieldIndex
;
79
87
const
QgsProject
*
project
()
const
;
88
89
private
:
90
const
QgsProject
*mProject;
91
92
private
:
93
#ifdef SIP_RUN
94
QgsGeometryCheckContext
(
const
QgsGeometryCheckContext
&rh ) {}
95
#endif
96
};
97
98
#endif
// QGSGEOMETRYCHECKCONTEXT_H
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:61
QgsGeometryCheckContext::project
const QgsProject * project() const
The project can be used to resolve additional layers.
Definition
qgsgeometrycheckcontext.cpp:31
QgsGeometryCheckContext::reducedTolerance
const double reducedTolerance
The tolerance to allow for in geometry checks.
Definition
qgsgeometrycheckcontext.h:61
QgsGeometryCheckContext::transformContext
const QgsCoordinateTransformContext transformContext
The coordinate transform context with which transformations will be done.
Definition
qgsgeometrycheckcontext.h:71
QgsGeometryCheckContext::QgsGeometryCheckContext
QgsGeometryCheckContext(int precision, const QgsCoordinateReferenceSystem &mapCrs, const QgsCoordinateTransformContext &transformContext, const QgsProject *mProject=nullptr, const int uniqueIdFieldIndex=-1)
Creates a new QgsGeometryCheckContext.
Definition
qgsgeometrycheckcontext.cpp:20
QgsGeometryCheckContext::uniqueIdFieldIndex
const int uniqueIdFieldIndex
The index of the unique ID field used to identify features.
Definition
qgsgeometrycheckcontext.h:78
QgsGeometryCheckContext::mapCrs
const QgsCoordinateReferenceSystem mapCrs
The coordinate system in which calculations should be done.
Definition
qgsgeometrycheckcontext.h:66
QgsGeometryCheckContext::tolerance
const double tolerance
The tolerance to allow for in geometry checks.
Definition
qgsgeometrycheckcontext.h:53
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition
qgsproject.h:114
qgscoordinatereferencesystem.h
qgscoordinatetransformcontext.h
qgsfeaturepool.h
Generated on
for QGIS API Documentation by
1.17.0