Skip to content
Permalink
Browse files
Use distanceWithin in QgsFeatureRequest::accept
  • Loading branch information
strk authored and nyalldawson committed Oct 24, 2021
1 parent 496bd6f commit 6ba061198a31d5d8a5a83311d2a20a96694938ea
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 6ba0611

Please sign in to comment.