Skip to content
Permalink
Browse files
Use distanceWithin in QgsFeatureRequest::accept
  • Loading branch information
strk committed Oct 24, 2021
1 parent 2588bb2 commit 14c5caaf1389b9e615392e7c459ae15b3bb907e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsfeaturerequest.cpp
@@ -357,7 +357,7 @@ bool QgsFeatureRequest::acceptFeature( const QgsFeature &feature )
if ( !feature.hasGeometry()
|| !mReferenceGeometryEngine
|| !feature.geometry().boundingBoxIntersects( mFilterRect )
|| mReferenceGeometryEngine->distance( feature.geometry().constGet() ) > mDistanceWithin
|| !mReferenceGeometryEngine->distanceWithin( feature.geometry().constGet(), mDistanceWithin )
)
return false;
break;

0 comments on commit 14c5caa

Please sign in to comment.