Skip to content
Permalink
Browse files

[afs] Fix identify tool sometimes just uses a bounding box check inst…

…ead of exact intersection

(cherry picked from commit bb24898)
  • Loading branch information
nyalldawson committed Nov 22, 2018
1 parent 2619527 commit 98cef323dfe2032d9e74572baa3aaca8499e15f1
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/providers/arcgisrest/qgsafsfeatureiterator.cpp
@@ -133,9 +133,12 @@ bool QgsAfsFeatureIterator::fetchFeature( QgsFeature &f )

mDeferredFeaturesInFilterRectCheck = false;

// discard the filter rect - we know that the features in mRemainingFeatureIds are guaranteed
// to be intersecting the rect, so avoid any extra unnecessary checks
mFilterRect = QgsRectangle();
if ( !( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) )
{
// discard the filter rect - we know that the features in mRemainingFeatureIds are guaranteed
// to be intersecting the rect, so avoid any extra unnecessary checks
mFilterRect = QgsRectangle();
}
}

if ( !mFeatureIdList.empty() && mRemainingFeatureIds.empty() )

0 comments on commit 98cef32

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