QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
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
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
u
v
w
z
+
Variables
a
b
c
d
e
g
h
i
l
n
o
p
q
r
s
t
u
w
+
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
analysis
vector
geometry_checker
qgsgeometrysliverpolygoncheck.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgeometrysliverpolygoncheck.h
3
---------------------
4
begin : September 2015
5
copyright : (C) 2014 by Sandro Mani / Sourcepole AG
6
email : smani at sourcepole dot 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
#define SIP_NO_FILE
17
18
#ifndef QGS_GEOMETRY_SLIVERPOLYGON_CHECK_H
19
#define QGS_GEOMETRY_SLIVERPOLYGON_CHECK_H
20
21
#include "
qgsgeometryareacheck.h
"
22
26
class
ANALYSIS_EXPORT
QgsGeometrySliverPolygonCheck
:
public
QgsGeometryAreaCheck
27
{
28
public
:
29
QgsGeometrySliverPolygonCheck
(
QgsGeometryCheckContext
*context,
const
QVariantMap &configuration )
30
:
QgsGeometryAreaCheck
( context, configuration )
31
{
32
mThresholdMapUnits = configurationValue<double>(
"threshold"
);
33
mMaxArea = configurationValue<double>(
"maxArea"
);
34
}
35
static
QString
factoryDescription
() {
return
tr(
"Sliver polygon"
); }
36
QString
description
()
const override
{
return
factoryDescription
(); }
37
static
QString
factoryId
() {
return
QStringLiteral(
"QgsGeometrySliverPolygonCheck"
); }
38
QString
id
()
const override
{
return
factoryId
(); }
39
40
private
:
41
bool
checkThreshold(
double
layerToMapUnits,
const
QgsAbstractGeometry
*geom,
double
&value )
const override
;
42
43
double
mThresholdMapUnits;
44
double
mMaxArea;
45
46
};
47
48
#endif // QGS_GEOMETRY_SLIVERPOLYGON_CHECK_H
QgsGeometrySliverPolygonCheck::id
QString id() const override
Returns an id for this check.
Definition:
qgsgeometrysliverpolygoncheck.h:38
QgsGeometryAreaCheck::factoryDescription
static QString factoryDescription()
Definition:
qgsgeometryareacheck.h:46
QgsGeometryCheckContext
Base configuration for geometry checks.
Definition:
qgsgeometrycheckcontext.h:31
QgsGeometryAreaCheck
Definition:
qgsgeometryareacheck.h:28
QgsGeometrySliverPolygonCheck::description
QString description() const override
Returns a human readable description for this check.
Definition:
qgsgeometrysliverpolygoncheck.h:36
QgsAbstractGeometry
Abstract base class for all geometries.
Definition:
qgsabstractgeometry.h:71
QgsGeometrySliverPolygonCheck::factoryId
static QString factoryId()
Definition:
qgsgeometrysliverpolygoncheck.h:37
QgsGeometrySliverPolygonCheck::factoryDescription
static QString factoryDescription()
Definition:
qgsgeometrysliverpolygoncheck.h:35
qgsgeometryareacheck.h
QgsGeometrySliverPolygonCheck::QgsGeometrySliverPolygonCheck
QgsGeometrySliverPolygonCheck(QgsGeometryCheckContext *context, const QVariantMap &configuration)
Definition:
qgsgeometrysliverpolygoncheck.h:29
QgsGeometryAreaCheck::factoryId
static QString factoryId()
Definition:
qgsgeometryareacheck.h:48
QgsGeometrySliverPolygonCheck
Definition:
qgsgeometrysliverpolygoncheck.h:26
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13