Skip to content
Permalink
Browse files
Optimise calcuation of disjoint features
  • Loading branch information
nyalldawson committed Sep 10, 2017
1 parent 6d94e6f commit 2a88a5a
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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.