Skip to content
Browse files

[processing] Reproject algorithm doesn't care about invalid features

(cherry picked from commit 7a8bee2)
  • Loading branch information
nyalldawson committed Aug 27, 2018
1 parent 9ca0e9d commit 7eb5db3df3d6bafc33841323dd0cedea0acf2290
@@ -35,6 +35,11 @@ QString QgsTransformAlgorithm::outputName() const
return QObject::tr( "Reprojected" );

QgsProcessingFeatureSource::Flag QgsTransformAlgorithm::sourceFlags() const
return QgsProcessingFeatureSource::FlagSkipGeometryValidityChecks;

QString QgsTransformAlgorithm::name() const
return QStringLiteral( "reprojectlayer" );
@@ -47,6 +47,7 @@ class QgsTransformAlgorithm : public QgsProcessingFeatureBasedAlgorithm
void initParameters( const QVariantMap &configuration = QVariantMap() ) override;
QgsCoordinateReferenceSystem outputCrs( const QgsCoordinateReferenceSystem & ) const override;
QString outputName() const override;
QgsProcessingFeatureSource::Flag sourceFlags() const override;

bool prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
QgsFeatureList processFeature( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;

0 comments on commit 7eb5db3

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