QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
analysis
vector
geometry_checker
qgsgeometryisvalidcheck.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgeometryisvalidcheck.h
3
--------------------------------------
4
Date : 7.9.2018
5
Copyright : (C) 2018 by 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 QGSGEOMETRYISVALIDCHECK_H
17
#define QGSGEOMETRYISVALIDCHECK_H
18
19
#define SIP_NO_FILE
20
21
#include "
qgssinglegeometrycheck.h
"
22
32
class
ANALYSIS_EXPORT
QgsGeometryIsValidCheckError
:
public
QgsSingleGeometryCheckError
33
{
34
public
:
35
39
QgsGeometryIsValidCheckError
(
const
QgsSingleGeometryCheck
*check,
const
QgsGeometry
&geometry,
const
QgsGeometry
&errorLocation,
const
QString &errorDescription );
40
41
QString
description
()
const override
;
42
43
private
:
44
QString mDescription;
45
};
46
55
class
ANALYSIS_EXPORT
QgsGeometryIsValidCheck
:
public
QgsSingleGeometryCheck
56
{
57
Q_DECLARE_TR_FUNCTIONS(
QgsGeometryIsValidCheck
)
58
public
:
59
63
explicit
QgsGeometryIsValidCheck
(
const
QgsGeometryCheckContext
*context,
const
QVariantMap &configuration );
64
65
QList<QgsWkbTypes::GeometryType>
compatibleGeometryTypes
()
const override
;
66
QList<QgsSingleGeometryCheckError *>
processGeometry
(
const
QgsGeometry
&geometry )
const override
;
67
Q_DECL_DEPRECATED QStringList
resolutionMethods
()
const override
;
68
QString
description
()
const override
{
return
factoryDescription(); }
69
QString
id
()
const override
{
return
factoryId(); }
70
QgsGeometryCheck::CheckType
checkType
()
const override
{
return
factoryCheckType(); }
71
73
static
QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes()
SIP_SKIP
;
74
static
bool
factoryIsCompatible(
QgsVectorLayer
*layer )
SIP_SKIP
;
75
static QString factoryDescription()
SIP_SKIP
;
76
static QString factoryId()
SIP_SKIP
;
77
static
QgsGeometryCheck
::Flags factoryFlags()
SIP_SKIP
;
78
static
QgsGeometryCheck
::CheckType factoryCheckType()
SIP_SKIP
;
80
};
81
82
#endif // QGSGEOMETRYISVALIDCHECK_H
QgsGeometryCheck::compatibleGeometryTypes
virtual QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes() const =0
A list of geometry types for which this check can be performed.
QgsGeometryIsValidCheckError
An error for a QgsGeometryIsValid check.
Definition:
qgsgeometryisvalidcheck.h:32
QgsGeometryCheck::resolutionMethods
virtual Q_DECL_DEPRECATED QStringList resolutionMethods() const
Returns a list of descriptions for available resolutions for errors.
Definition:
qgsgeometrycheck.cpp:77
QgsSingleGeometryCheckError
An error from a QgsSingleGeometryCheck.
Definition:
qgssinglegeometrycheck.h:39
QgsGeometryIsValidCheck
Checks if geometries are valid using the backend configured in the QGIS settings. This does not offer...
Definition:
qgsgeometryisvalidcheck.h:55
QgsSingleGeometryCheck::processGeometry
virtual QList< QgsSingleGeometryCheckError * > processGeometry(const QgsGeometry &geometry) const =0
Check the geometry for errors.
QgsSingleGeometryCheckError::description
virtual QString description() const
A human readable description of this error.
Definition:
qgssinglegeometrycheck.cpp:64
QgsGeometryIsValidCheck::checkType
QgsGeometryCheck::CheckType checkType() const override
Returns the check type.
Definition:
qgsgeometryisvalidcheck.h:70
QgsSingleGeometryCheck
Base class for geometry checks for a single geometry without any context of the layer or other layers...
Definition:
qgssinglegeometrycheck.h:149
QgsGeometryIsValidCheck::description
QString description() const override
Returns a human readable description for this check.
Definition:
qgsgeometryisvalidcheck.h:68
QgsGeometryCheck
This class implements a geometry check.
Definition:
qgsgeometrycheck.h:91
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
QgsGeometryCheckContext
Base configuration for geometry checks.
Definition:
qgsgeometrycheckcontext.h:31
QgsGeometryIsValidCheck::id
QString id() const override
Returns an id for this check.
Definition:
qgsgeometryisvalidcheck.h:69
QgsGeometry
A geometry is the spatial representation of a feature.
Definition:
qgsgeometry.h:124
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:391
QgsGeometryCheck::CheckType
CheckType
The type of a check.
Definition:
qgsgeometrycheck.h:154
qgssinglegeometrycheck.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17