Skip to content

Commit

Permalink
fix 016b03b
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 31, 2014
1 parent 016b03b commit da6ff91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -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')" )
Expand Down

0 comments on commit da6ff91

Please sign in to comment.