Skip to content
Permalink
Browse files

Optimise calcuation of disjoint features

  • Loading branch information
nyalldawson committed Sep 10, 2017
1 parent 6d94e6f commit 2a88a5a9539653917abe5268fa3130ff943871f6
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/processing/qgsnativealgorithms.cpp
@@ -1450,6 +1450,11 @@ void QgsLocationBasedAlgorithm::process( QgsFeatureSource *targetSource,
// already added this one, no need for further tests
continue;
}
if ( predicates.count() == 1 && predicates.at( 0 ) == Disjoint && !disjointSet.contains( testFeature.id() ) )
{
// calculating only the disjoint set, and we've already eliminated this feature so no need for further tests
continue;
}

if ( !engine )
{

0 comments on commit 2a88a5a

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