Skip to content

Commit 0beeadf

Browse files
committedApr 26, 2015
oracle spatial: use sdo_relate for exact intersect feature requests where oracle spatial is available
(cherry picked from commit fa99a96)
1 parent af5b5e7 commit 0beeadf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/providers/oracle/qgsoraclefeatureiterator.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource* sour
6666
.arg( qgsDoubleToString( rect.yMaximum() ) );
6767

6868
whereClause = QString( "sdo_filter(%1,%2)='TRUE'" ).arg( QgsOracleProvider::quotedIdentifier( mSource->mGeometryColumn ) ).arg( bbox );
69-
#if 0
70-
if ( mRequest.flags() & QgsFeatureRequest::ExactIntersect )
69+
70+
if ( mRequest.flags() & QgsFeatureRequest::ExactIntersect && mConnection->hasSpatial() )
7171
{
7272
whereClause += QString( " AND sdo_relate(%1,%2,'mask=ANYINTERACT')='TRUE'" )
73-
.arg( quotedIdentifier( P->mGeometryColumn ) )
73+
.arg( QgsOracleProvider::quotedIdentifier( mSource->mGeometryColumn ) )
7474
.arg( bbox );
7575
}
76-
#endif
7776
}
7877
break;
7978

0 commit comments

Comments
 (0)
Please sign in to comment.