Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Aug 27, 2018
1 parent 98c5104 commit 7a8bee2cecc3d0ea71c036d0922f7a310ec777c8
@@ -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 7a8bee2

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