Skip to content
Permalink
Browse files

Added check for Contains to force a Join on the rtree table for large…

… Spatiallite/Geopackage DB's and improves the lookup performance significantly.
  • Loading branch information
Rutjes, Dennis
Rutjes, Dennis committed Oct 30, 2019
1 parent 1538df8 commit 40fd76fdf6149b0ffebfaf1ed811a39b12773a58
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapogr.cpp
@@ -3469,7 +3469,7 @@ static int msOGRExtractTopSpatialFilter( msOGRFileInfo *info,
pSpatialFilterNode);
}

if( expr->m_nToken == MS_TOKEN_COMPARISON_INTERSECTS &&
if( (expr->m_nToken == MS_TOKEN_COMPARISON_INTERSECTS || expr->m_nToken == MS_TOKEN_COMPARISON_CONTAINS ) &&
expr->m_aoChildren.size() == 2 &&
expr->m_aoChildren[1]->m_nToken == MS_TOKEN_LITERAL_SHAPE )
{

0 comments on commit 40fd76f

Please sign in to comment.
You can’t perform that action at this time.