This commit is contained in:
Matthias Kuhn 2018-09-30 10:41:03 +02:00
parent bd5703cbfc
commit 113edccaa2
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7
4 changed files with 1 additions and 10 deletions

View File

@ -27,8 +27,6 @@ related to analysis classes.
~QgsAnalysis();
static QgsAnalysis *instance();
%Docstring
Returns a pointer to the singleton instance.

View File

@ -48,8 +48,3 @@ QgsAnalysis::QgsAnalysis()
mGeometryCheckRegistry->registerGeometryCheck( new QgsGeometryCheckFactoryT<QgsGeometryOverlapCheck>() );
mGeometryCheckRegistry->registerGeometryCheck( new QgsGeometryCheckFactoryT<QgsGeometryMissingVertexCheck>() );
}
QgsAnalysis::~QgsAnalysis()
{
}

View File

@ -41,8 +41,6 @@ class ANALYSIS_EXPORT QgsAnalysis
//! QgsAnalysis cannot be copied
QgsAnalysis &operator=( const QgsAnalysis &other ) = delete;
~QgsAnalysis();
/**
* Returns a pointer to the singleton instance.
*/

View File

@ -25,7 +25,7 @@ class ANALYSIS_EXPORT QgsGeometryAngleCheck : public QgsGeometryCheck
public:
QgsGeometryAngleCheck( QgsGeometryCheckContext *context, const QVariantMap &configuration )
: QgsGeometryCheck( FeatureNodeCheck, context, configuration )
, mMinAngle( configuration.value( "minAngle", 0.0 ).toDouble() )
, mMinAngle( configuration.value( QStringLiteral( "minAngle" ), 0.0 ).toDouble() )
{}
static QList<QgsWkbTypes::GeometryType> factoryCompatibleGeometryTypes() {return {QgsWkbTypes::LineGeometry, QgsWkbTypes::PolygonGeometry}; }
static bool factoryIsCompatible( QgsVectorLayer *layer ) SIP_SKIP { return factoryCompatibleGeometryTypes().contains( layer->geometryType() ); }