Skip to content
Permalink
Browse files

Merge pull request #1102 from ahuarte47/Issue_8725R-ST_Simplify2

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 f4fc13402aad78447ddb3ec0c7f2e130eb794ed4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -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();

0 comments on commit f4fc134

Please sign in to comment.
You can’t perform that action at this time.