Skip to content
Permalink
Browse files

oracle spatial: use sdo_relate for exact intersect feature requests w…

…here oracle spatial is available

(cherry picked from commit fa99a96)
  • Loading branch information
jef-n committed Apr 26, 2015
1 parent af5b5e7 commit 0beeadf9066a23b6abf9fbc6958e3c723cff33da
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -66,14 +66,13 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource* sour
.arg( qgsDoubleToString( rect.yMaximum() ) );

whereClause = QString( "sdo_filter(%1,%2)='TRUE'" ).arg( QgsOracleProvider::quotedIdentifier( mSource->mGeometryColumn ) ).arg( bbox );
#if 0
if ( mRequest.flags() & QgsFeatureRequest::ExactIntersect )

if ( mRequest.flags() & QgsFeatureRequest::ExactIntersect && mConnection->hasSpatial() )
{
whereClause += QString( " AND sdo_relate(%1,%2,'mask=ANYINTERACT')='TRUE'" )
.arg( quotedIdentifier( P->mGeometryColumn ) )
.arg( QgsOracleProvider::quotedIdentifier( mSource->mGeometryColumn ) )
.arg( bbox );
}
#endif
}
break;

0 comments on commit 0beeadf

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