Skip to content

Commit

Permalink
Use prepared geometries for faster selections
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 21, 2020
1 parent 929e2b1 commit 9d2ecb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsmaptoolselectutils.cpp
Expand Up @@ -238,6 +238,7 @@ QgsFeatureIds QgsMapToolSelectUtils::getMatchingFeatures( QgsMapCanvas *canvas,

std::unique_ptr< QgsGeometryEngine > selectionGeometryEngine( QgsGeometry::createGeometryEngine( selectGeomTrans.constGet() ) );
selectionGeometryEngine->setLogErrors( false );
selectionGeometryEngine->prepareGeometry();

QgsRenderContext context = QgsRenderContext::fromMapSettings( canvas->mapSettings() );
context.expressionContext() << QgsExpressionContextUtils::layerScope( vlayer );
Expand Down

0 comments on commit 9d2ecb5

Please sign in to comment.