QGIS API Documentation
3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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
27
class
ANALYSIS_EXPORT
QgsGeometrySliverPolygonCheck
:
public
QgsGeometryAreaCheck
28
{
29
public
:
30
QgsGeometrySliverPolygonCheck
(
QgsGeometryCheckContext
*context,
const
QVariantMap &configuration )
31
:
QgsGeometryAreaCheck
( context, configuration )
32
{
33
mThresholdMapUnits = configurationValue<double>(
"threshold"
);
34
mMaxArea = configurationValue<double>(
"maxArea"
);
35
}
36
QString
description
()
const override
{
return
factoryDescription(); }
37
QString
id
()
const override
{
return
factoryId(); }
38
39
private
:
40
static
QString factoryDescription() {
return
tr(
"Sliver polygon"
); }
41
static
QString factoryId() {
return
QStringLiteral(
"QgsGeometrySliverPolygonCheck"
); }
42
43
bool
checkThreshold(
double
layerToMapUnits,
const
QgsAbstractGeometry
*geom,
double
&value )
const override
;
44
45
double
mThresholdMapUnits = 0;
46
double
mMaxArea = 0;
47
48
};
49
50
#endif
// QGS_GEOMETRY_SLIVERPOLYGON_CHECK_H
QgsAbstractGeometry
Abstract base class for all geometries.
Definition
qgsabstractgeometry.h:80
QgsGeometryAreaCheck
Area check.
Definition
qgsgeometryareacheck.h:30
QgsGeometryCheckContext
Base configuration for geometry checks.
Definition
qgsgeometrycheckcontext.h:32
QgsGeometrySliverPolygonCheck
A sliver polygon check.
Definition
qgsgeometrysliverpolygoncheck.h:28
QgsGeometrySliverPolygonCheck::id
QString id() const override
Returns an id for this check.
Definition
qgsgeometrysliverpolygoncheck.h:37
QgsGeometrySliverPolygonCheck::description
QString description() const override
Returns a human readable description for this check.
Definition
qgsgeometrysliverpolygoncheck.h:36
QgsGeometrySliverPolygonCheck::QgsGeometrySliverPolygonCheck
QgsGeometrySliverPolygonCheck(QgsGeometryCheckContext *context, const QVariantMap &configuration)
Definition
qgsgeometrysliverpolygoncheck.h:30
qgsgeometryareacheck.h
Generated on Sun Nov 10 2024 14:15:43 for QGIS API Documentation by
1.9.8