Skip to content
Permalink
Browse files

#8725R: no check simplification topology for point geometries

  • Loading branch information
ahuarte47 committed Jan 23, 2014
1 parent 810773a commit b0474d6f5bf0e314a287780f1246aea11018c362
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 b0474d6

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