Skip to content

Commit f4fc134

Browse files
committed
Merge pull request #1102 from ahuarte47/Issue_8725R-ST_Simplify2
Fix bug #8725R: no check simplification topology for point geometries in postgis provider
2 parents 0536cfa + b0474d6 commit f4fc134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresfeatureiterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ bool QgsPostgresFeatureIterator::getFeature( QgsPostgresResult &queryResult, int
605605

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

0 commit comments

Comments
 (0)