Skip to content
Permalink
Browse files

Fix template based geometry check factory

  • Loading branch information
m-kuhn committed Sep 27, 2018
1 parent ea87815 commit 821a4ba32fb6d78735ec5320478de3dbbc30eac1
@@ -97,6 +97,12 @@ class ANALYSIS_EXPORT QgsGeometryGapCheck : public QgsGeometryCheck
static QgsGeometryCheck::CheckType factoryCheckType() SIP_SKIP;
///@endcond private

static QString factoryDescription() { return tr( "Gap" ); }
static QString factoryId() { return QStringLiteral( "QgsGeometryGapCheck" ); }
static QgsGeometryCheck::Flags factoryFlags() {return QgsGeometryCheck::SingleLayerTopologyCheck;}
static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes() {return {QgsWkbTypes::PolygonGeometry};}
static bool factoryIsCompatible( QgsVectorLayer *layer ) SIP_SKIP { return factoryCompatibleGeometryTypes().contains( layer->geometryType() ); }

enum ResolutionMethod { MergeLongestEdge, NoChange };

private:
@@ -92,6 +92,13 @@ class ANALYSIS_EXPORT QgsGeometryOverlapCheck : public QgsGeometryCheck
static QgsGeometryCheck::CheckType factoryCheckType() SIP_SKIP;
///@endcond private

static QString factoryDescription() { return tr( "Overlap" ); }
static QString factoryId() { return QStringLiteral( "QgsGeometryOverlapCheck" ); }
static QgsGeometryCheck::Flags factoryFlags() {return QgsGeometryCheck::SingleLayerTopologyCheck;}
static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes() {return {QgsWkbTypes::PolygonGeometry};}
static bool factoryIsCompatible( QgsVectorLayer *layer ) SIP_SKIP { return factoryCompatibleGeometryTypes().contains( layer->geometryType() ); }


enum ResolutionMethod { Subtract, NoChange };

private:

0 comments on commit 821a4ba

Please sign in to comment.
You can’t perform that action at this time.