Skip to content
Permalink
Browse files

Postgres simplification does not work with curved types

  • Loading branch information
mhugent committed May 27, 2016
1 parent 7e9a0a7 commit 0aec8e9892e7b7c20b036d635dfcb56e96f01318
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -486,11 +486,13 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause, long
geom );
}

QGis::WkbType usedGeomType = mSource->mRequestedGeomType != QGis::WKBUnknown
? mSource->mRequestedGeomType : mSource->mDetectedGeomType;

if ( !mRequest.simplifyMethod().forceLocalOptimization() &&
mRequest.simplifyMethod().methodType() != QgsSimplifyMethod::NoSimplification &&
QGis::flatType( QGis::singleType( mSource->mRequestedGeomType != QGis::WKBUnknown
? mSource->mRequestedGeomType
: mSource->mDetectedGeomType ) ) != QGis::WKBPoint )
QGis::flatType( QGis::singleType( usedGeomType ) ) != QGis::WKBPoint &&
!QgsWKBTypes::isCurvedType( QGis::fromOldWkbType( usedGeomType ) ) )
{
// PostGIS simplification method to use
QString simplifyPostgisMethod;

0 comments on commit 0aec8e9

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