Skip to content

Commit

Permalink
The boundary algorithm isn't suspectible to invalid geometries, so
Browse files Browse the repository at this point in the history
skip the checks for it
  • Loading branch information
nyalldawson committed Jun 10, 2020
1 parent dc7f729 commit 15e6c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/analysis/processing/qgsalgorithmboundary.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmboundary.h
Expand Up @@ -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:

Expand Down

0 comments on commit 15e6c3e

Please sign in to comment.