Skip to content

Commit 98cef32

Browse files
committed
[afs] Fix identify tool sometimes just uses a bounding box check instead of exact intersection
(cherry picked from commit bb24898)
1 parent 2619527 commit 98cef32

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/providers/arcgisrest/qgsafsfeatureiterator.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ bool QgsAfsFeatureIterator::fetchFeature( QgsFeature &f )
133133

134134
mDeferredFeaturesInFilterRectCheck = false;
135135

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

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

0 commit comments

Comments
 (0)