Skip to content

Commit 371f9ba

Browse files
committed
don't use infinite in spatialite where clauses
1 parent 8269f9e commit 371f9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/spatialite/qgsspatialitefeatureiterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
223223
}
224224
else
225225
{
226-
if ( P->spatialIndexRTree )
226+
if ( P->spatialIndexRTree && rect.isFinite() )
227227
{
228228
// using the RTree spatial index
229229
QString mbrFilter = QString( "xmin <= %1 AND " ).arg( qgsDoubleToString( rect.xMaximum() ) );

0 commit comments

Comments
 (0)