File tree 2 files changed +13
-0
lines changed
src/analysis/vector/geometry_checker
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ class ANALYSIS_EXPORT QgsGeometryGapCheck : public QgsGeometryCheck
97
97
static QgsGeometryCheck::CheckType factoryCheckType () SIP_SKIP;
98
98
// /@endcond private
99
99
100
+ static QString factoryDescription () { return tr ( " Gap" ); }
101
+ static QString factoryId () { return QStringLiteral ( " QgsGeometryGapCheck" ); }
102
+ static QgsGeometryCheck::Flags factoryFlags () {return QgsGeometryCheck::SingleLayerTopologyCheck;}
103
+ static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes () {return {QgsWkbTypes::PolygonGeometry};}
104
+ static bool factoryIsCompatible ( QgsVectorLayer *layer ) SIP_SKIP { return factoryCompatibleGeometryTypes ().contains ( layer->geometryType () ); }
105
+
100
106
enum ResolutionMethod { MergeLongestEdge, NoChange };
101
107
102
108
private:
Original file line number Diff line number Diff line change @@ -92,6 +92,13 @@ class ANALYSIS_EXPORT QgsGeometryOverlapCheck : public QgsGeometryCheck
92
92
static QgsGeometryCheck::CheckType factoryCheckType () SIP_SKIP;
93
93
// /@endcond private
94
94
95
+ static QString factoryDescription () { return tr ( " Overlap" ); }
96
+ static QString factoryId () { return QStringLiteral ( " QgsGeometryOverlapCheck" ); }
97
+ static QgsGeometryCheck::Flags factoryFlags () {return QgsGeometryCheck::SingleLayerTopologyCheck;}
98
+ static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes () {return {QgsWkbTypes::PolygonGeometry};}
99
+ static bool factoryIsCompatible ( QgsVectorLayer *layer ) SIP_SKIP { return factoryCompatibleGeometryTypes ().contains ( layer->geometryType () ); }
100
+
101
+
95
102
enum ResolutionMethod { Subtract, NoChange };
96
103
97
104
private:
You can’t perform that action at this time.
0 commit comments