Skip to content
Permalink
Browse files

Add missing proxy calls for QgsProcessingFeatureSource, causing

inefficient base class methods to be used instead.
  • Loading branch information
nyalldawson committed Dec 8, 2017
1 parent be962c7 commit 3a5caaf94c682401a3bc73382282d5ea0f9209fc
@@ -273,6 +273,10 @@ class QgsProcessingFeatureSource : QgsFeatureSource

virtual QVariant maximumValue( int fieldIndex ) const;

virtual QgsRectangle sourceExtent() const;

virtual QgsFeatureIds allFeatureIds() const;


QgsExpressionContextScope *createExpressionContextScope() const /Factory/;
%Docstring
@@ -729,6 +729,16 @@ QVariant QgsProcessingFeatureSource::maximumValue( int fieldIndex ) const
return mSource->maximumValue( fieldIndex );
}

QgsRectangle QgsProcessingFeatureSource::sourceExtent() const
{
return mSource->sourceExtent();
}

QgsFeatureIds QgsProcessingFeatureSource::allFeatureIds() const
{
return mSource->allFeatureIds();
}

QgsExpressionContextScope *QgsProcessingFeatureSource::createExpressionContextScope() const
{
QgsExpressionContextScope *expressionContextScope = nullptr;
@@ -318,6 +318,8 @@ class CORE_EXPORT QgsProcessingFeatureSource : public QgsFeatureSource
QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const override;
QVariant minimumValue( int fieldIndex ) const override;
QVariant maximumValue( int fieldIndex ) const override;
QgsRectangle sourceExtent() const override;
QgsFeatureIds allFeatureIds() const override;

/**
* Returns an expression context scope suitable for this source.

0 comments on commit 3a5caaf

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