Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
spatialite: update more infinite where clauses (followup 371f9ba)
  • Loading branch information
jef-n committed Nov 13, 2013
1 parent e890e14 commit eabfa48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/providers/spatialite/qgsspatialitefeatureiterator.cpp
Expand Up @@ -221,9 +221,9 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
// handling a VirtualShape layer
whereClause += QString( "MbrIntersects(%1, BuildMbr(%2))" ).arg( P->quotedIdentifier( P->mGeometryColumn ) ).arg( mbr( rect ) );
}
else
else if ( rect.isFinite() )
{
if ( P->spatialIndexRTree && rect.isFinite() )
if ( P->spatialIndexRTree )
{
// using the RTree spatial index
QString mbrFilter = QString( "xmin <= %1 AND " ).arg( qgsDoubleToString( rect.xMaximum() ) );
Expand Down Expand Up @@ -251,6 +251,10 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
whereClause += QString( "MbrIntersects(%1, BuildMbr(%2))" ).arg( P->quotedIdentifier( P->mGeometryColumn ) ).arg( mbr( rect ) );
}
}
else
{
whereClause = "1";
}
return whereClause;
}

Expand Down

0 comments on commit eabfa48

Please sign in to comment.