Skip to content

Commit 821a4ba

Browse files
committed
Fix template based geometry check factory
1 parent ea87815 commit 821a4ba

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/analysis/vector/geometry_checker/qgsgeometrygapcheck.h

+6
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ class ANALYSIS_EXPORT QgsGeometryGapCheck : public QgsGeometryCheck
9797
static QgsGeometryCheck::CheckType factoryCheckType() SIP_SKIP;
9898
///@endcond private
9999

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+
100106
enum ResolutionMethod { MergeLongestEdge, NoChange };
101107

102108
private:

src/analysis/vector/geometry_checker/qgsgeometryoverlapcheck.h

+7
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ class ANALYSIS_EXPORT QgsGeometryOverlapCheck : public QgsGeometryCheck
9292
static QgsGeometryCheck::CheckType factoryCheckType() SIP_SKIP;
9393
///@endcond private
9494

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+
95102
enum ResolutionMethod { Subtract, NoChange };
96103

97104
private:

0 commit comments

Comments
 (0)