Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1102 from ahuarte47/Issue_8725R-ST_Simplify2
Browse files Browse the repository at this point in the history
Fix bug #8725R: no check simplification topology for point geometries in postgis provider
  • Loading branch information
timlinux committed Jan 23, 2014
2 parents 0536cfa + b0474d6 commit f4fc134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -605,7 +605,7 @@ bool QgsPostgresFeatureIterator::getFeature( QgsPostgresResult &queryResult, int

// fix collapsed geometries by ST_Simplify() using the BBOX fetched from the current query
const QgsSimplifyMethod& simplifyMethod = mRequest.simplifyMethod();
if ( mFetchGeometry && !simplifyMethod.forceLocalOptimization() && simplifyMethod.methodType() == QgsSimplifyMethod::OptimizeForRendering )
if ( mFetchGeometry && !simplifyMethod.forceLocalOptimization() && simplifyMethod.methodType() == QgsSimplifyMethod::OptimizeForRendering && QGis::flatType( QGis::singleType( P->geometryType() ) ) != QGis::WKBPoint )
{
QgsGeometry* geometry = feature.geometry();

Expand Down

0 comments on commit f4fc134

Please sign in to comment.