Skip to content

Commit da6ff91

Browse files
committed
fix 016b03b
1 parent 016b03b commit da6ff91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/postgres/qgspostgresfeatureiterator.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,18 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
306306
.arg( geom );
307307
}
308308

309-
if ( !simplifyMethod.forceLocalOptimization() &&
309+
if ( !mRequest.simplifyMethod().forceLocalOptimization() &&
310310
mRequest.simplifyMethod().methodType() != QgsSimplifyMethod::NoSimplification &&
311311
QGis::flatType( QGis::singleType( mSource->mRequestedGeomType != QGis::WKBUnknown
312312
? mSource->mRequestedGeomType
313313
: mSource->mDetectedGeomType ) ) != QGis::WKBPoint )
314314
{
315315
geom = QString( "%1(%2,%3)" )
316-
.arg( mRequest.simplifyMethod().methodType().methodType() == QgsSimplifyMethod::OptimizeForRendering
316+
.arg( mRequest.simplifyMethod().methodType() == QgsSimplifyMethod::OptimizeForRendering
317317
? ( mConn->majorVersion() < 2 ? "snaptogrid" : "st_snaptogrid" )
318318
: ( mConn->majorVersion() < 2 ? "simplifypreservetopology" : "st_simplifypreservetopology" ) )
319319
.arg( geom )
320-
.arg( simplifyMethod.tolerance() * 0.8 ); //-> Default factor for the maximum displacement distance for simplification, similar as GeoServer does
320+
.arg( mRequest.simplifyMethod().tolerance() * 0.8 ); //-> Default factor for the maximum displacement distance for simplification, similar as GeoServer does
321321
}
322322

323323
geom = QString( "%1(%2,'%3')" )

0 commit comments

Comments
 (0)