File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -289,14 +289,14 @@ QString QgsPostgresFeatureIterator::whereClauseRect()
289
289
.arg ( mSource ->mRequestedSrid .isEmpty () ? mSource ->mDetectedSrid : mSource ->mRequestedSrid );
290
290
}
291
291
292
+ bool castToGeometry = mSource ->mSpatialColType == sctGeography ||
293
+ mSource ->mSpatialColType == sctPcPatch;
294
+
292
295
QString whereClause = QString ( " %1%2 && %3" )
293
296
.arg ( QgsPostgresConn::quotedIdentifier ( mSource ->mGeometryColumn ) )
294
- .arg ( mSource -> mSpatialColType == sctPcPatch ? " ::geometry" : " " )
297
+ .arg ( castToGeometry ? " ::geometry" : " " )
295
298
.arg ( qBox );
296
299
297
- bool castToGeometry = mSource ->mSpatialColType == sctGeography ||
298
- mSource ->mSpatialColType == sctPcPatch;
299
-
300
300
if ( mRequest .flags () & QgsFeatureRequest::ExactIntersect )
301
301
{
302
302
QString curveToLineFn; // in postgis < 1.5 the st_curvetoline function does not exist
You can’t perform that action at this time.
0 commit comments