@@ -148,27 +148,6 @@ bool QgsOracleFeatureIterator::nextFeatureFilterExpression( QgsFeature& f )
148
148
return fetchFeature ( f );
149
149
}
150
150
151
- bool QgsOracleFeatureIterator::prepareSimplification ( const QgsSimplifyMethod& simplifyMethod )
152
- {
153
- // setup simplification of geometries to fetch
154
- if ( !( mRequest .flags () & QgsFeatureRequest::NoGeometry ) &&
155
- simplifyMethod.methodType () != QgsSimplifyMethod::NoSimplification &&
156
- !simplifyMethod.forceLocalOptimization () )
157
- {
158
- QgsSimplifyMethod::MethodType methodType = simplifyMethod.methodType ();
159
-
160
- if ( methodType == QgsSimplifyMethod::OptimizeForRendering )
161
- {
162
- return true ;
163
- }
164
- else
165
- {
166
- QgsDebugMsg ( QString ( " Simplification method type (%1) is not recognised by OracleFeatureIterator" ).arg ( methodType ) );
167
- }
168
- }
169
- return QgsAbstractFeatureIterator::prepareSimplification ( simplifyMethod );
170
- }
171
-
172
151
bool QgsOracleFeatureIterator::fetchFeature ( QgsFeature& feature )
173
152
{
174
153
feature.setValid ( false );
@@ -337,20 +316,7 @@ bool QgsOracleFeatureIterator::openQuery( QString whereClause )
337
316
338
317
if (( mRequest .flags () & QgsFeatureRequest::NoGeometry ) == 0 && !mSource ->mGeometryColumn .isNull () )
339
318
{
340
- if ( !mRequest .simplifyMethod ().forceLocalOptimization () &&
341
- mRequest .simplifyMethod ().methodType () == QgsSimplifyMethod::OptimizeForRendering &&
342
- QGis::flatType ( QGis::singleType ( mSource ->mRequestedGeomType != QGis::WKBUnknown
343
- ? mSource ->mRequestedGeomType
344
- : mSource ->mDetectedGeomType ) ) != QGis::WKBPoint )
345
- {
346
- query += QString ( " SDO_UTIL.SIMPLIFY( %1, %2 )" )
347
- .arg ( QgsOracleProvider::quotedIdentifier ( mSource ->mGeometryColumn ) )
348
- .arg ( mRequest .simplifyMethod ().tolerance () * 0.7 ); // -> We use a smaller tolerance than pre-filtering to be on the safe side
349
- }
350
- else
351
- {
352
- query += QgsOracleProvider::quotedIdentifier ( mSource ->mGeometryColumn );
353
- }
319
+ query += QgsOracleProvider::quotedIdentifier ( mSource ->mGeometryColumn );
354
320
delim = " ," ;
355
321
}
356
322
@@ -411,11 +377,6 @@ bool QgsOracleFeatureIterator::openQuery( QString whereClause )
411
377
return true ;
412
378
}
413
379
414
- bool QgsOracleFeatureIterator::providerCanSimplify ( QgsSimplifyMethod::MethodType methodType ) const
415
- {
416
- return ( mConnection ->majorVersion () > 10 || mConnection ->hasSpatial () ) && methodType == QgsSimplifyMethod::OptimizeForRendering;
417
- }
418
-
419
380
// -----------
420
381
421
382
QgsOracleFeatureSource::QgsOracleFeatureSource ( const QgsOracleProvider* p )
0 commit comments