Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[afs] Fix identify tool sometimes just uses a bounding box check inst…
…ead of exact intersection
  • Loading branch information
nyalldawson committed Nov 13, 2018
1 parent fc5f707 commit bb24898
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/providers/arcgisrest/qgsafsfeatureiterator.cpp
Expand Up @@ -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() )
Expand Down

0 comments on commit bb24898

Please sign in to comment.