Skip to content
Permalink
Browse files
Use distanceWithin in QgsFeatureRequest::accept
  • Loading branch information
strk authored and github-actions committed Oct 24, 2021
1 parent e0607da commit 243bede065536882c7feef5065e93980b36b661c
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 243bede

Please sign in to comment.