Skip to content
Permalink
Browse files

oracle provider: fix dfc2cf0 (fixes #13005; take II)

  • Loading branch information
jef-n committed Jun 26, 2015
1 parent 8a54182 commit 318137ae5649bb270613287804beb8e0fbab591f
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -145,10 +145,9 @@ bool QgsOracleFeatureIterator::fetchFeature( QgsFeature& feature )

feature.setGeometryAndOwnership( copy, ba->size() );

if ( !mConnection->hasSpatial() &&
mRequest.filterType() == QgsFeatureRequest::FilterRect &&
( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) != 0 &&
( !feature.geometry() || !feature.geometry()->intersects( mRequest.filterRect() ) ) )
if (( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) != 0 && ( !mConnection->hasSpatial() || !mSource->mHasSpatialIndex ) &&
mRequest.filterType() == QgsFeatureRequest::FilterRect &&
( !feature.geometry() || !feature.geometry()->intersects( mRequest.filterRect() ) ) )
{
// skip feature that don't intersect with our rectangle
QgsDebugMsg( "no intersect" );

0 comments on commit 318137a

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