Skip to content
Permalink
Browse files
fix 016b03b
  • Loading branch information
jef-n committed May 31, 2014
1 parent 016b03b commit da6ff917e6481042edec944e7dd2cd513bcfb799
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -306,18 +306,18 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
.arg( geom );
}

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

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

0 comments on commit da6ff91

Please sign in to comment.