Skip to content

Commit

Permalink
Do not complain on invalid geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 9, 2018
1 parent ae1ea91 commit 4462dba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmfilter.cpp
Expand Up @@ -88,6 +88,7 @@ void QgsFilterAlgorithm::initAlgorithm( const QVariantMap &configuration )

QVariantMap QgsFilterAlgorithm::processAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
{
context.setInvalidGeometryCheck( QgsFeatureRequest::GeometryNoCheck );
std::unique_ptr< QgsProcessingFeatureSource > source( parameterAsSource( parameters, QStringLiteral( "INPUT" ), context ) );
if ( !source )
throw QgsProcessingException( QObject::tr( "Could not open input layer or feature source for parameter INPUT." ) );
Expand Down

0 comments on commit 4462dba

Please sign in to comment.