Skip to content
Permalink
Browse files

spatialite: update more infinite where clauses (followup 371f9ba)

  • Loading branch information
jef-n committed Nov 13, 2013
1 parent e890e14 commit eabfa4800b8825cec4e618fd3ca866d65ba9cdd3
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/providers/spatialite/qgsspatialitefeatureiterator.cpp
@@ -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() ) );
@@ -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;
}

0 comments on commit eabfa48

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