Skip to content
Permalink
Browse files

The boundary algorithm isn't suspectible to invalid geometries, so

skip the checks for it
  • Loading branch information
nyalldawson committed Jun 10, 2020
1 parent dc7f729 commit 15e6c3ef9329c7044b4ae2ea902be5e587c01885
@@ -73,6 +73,11 @@ QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance() const
return new QgsBoundaryAlgorithm();
}

QgsProcessingFeatureSource::Flag QgsBoundaryAlgorithm::sourceFlags() const
{
return QgsProcessingFeatureSource::FlagSkipGeometryValidityChecks;
}

QgsWkbTypes::Type QgsBoundaryAlgorithm::outputWkbType( QgsWkbTypes::Type inputWkbType ) const
{
QgsWkbTypes::Type outputWkb = QgsWkbTypes::Unknown;
@@ -43,6 +43,7 @@ class QgsBoundaryAlgorithm : public QgsProcessingFeatureBasedAlgorithm
QList<int> inputLayerTypes() const override;
bool supportInPlaceEdit( const QgsMapLayer *layer ) const override;
QgsBoundaryAlgorithm *createInstance() const override SIP_FACTORY;
QgsProcessingFeatureSource::Flag sourceFlags() const override;

protected:

0 comments on commit 15e6c3e

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