Skip to content
Permalink
Browse files

[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 bb248989b30e38574513a5b387ad638792b3621d
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 bb24898

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