Skip to content

Commit 2c67e51

Browse files
ahuarte47m-kuhn
authored andcommittedJan 15, 2014
#8725-R: no simplify point layers in postgres provider
1 parent f37b056 commit 2c67e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresfeatureiterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
299299

300300
QString query = "SELECT ", delim = "";
301301

302-
if ( mFetchGeometry && !simplifyMethod.forceLocalOptimization() && simplifyMethod.methodType() != QgsSimplifyMethod::NoSimplification )
302+
if ( mFetchGeometry && !simplifyMethod.forceLocalOptimization() && simplifyMethod.methodType() != QgsSimplifyMethod::NoSimplification && QGis::flatType( QGis::singleType( P->geometryType() ) ) != QGis::WKBPoint )
303303
{
304304
QString simplifyFunctionName = simplifyMethod.methodType() == QgsSimplifyMethod::OptimizeForRendering
305305
?

0 commit comments

Comments
 (0)
Please sign in to comment.