Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove st_force2d from postgres provider
  • Loading branch information
Hugo Mercier authored and jef-n committed Sep 15, 2013
1 parent 546c2de commit 5bdb795
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -272,11 +272,8 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )

if ( fetchGeometry )
{
query += QString( "%1(%2(%3%4),'%5')" )
query += QString( "%1(%2%3,'%4')" )
.arg( P->mConnectionRO->majorVersion() < 2 ? "asbinary" : "st_asbinary" )
.arg( P->mConnectionRO->majorVersion() < 2 ? "force_2d"
: P->mConnectionRO->majorVersion() > 2 || P->mConnectionRO->minorVersion() > 0 ? "st_force2d"
: "st_force_2d" )
.arg( P->quotedIdentifier( P->mGeometryColumn ) )
.arg( P->mSpatialColType == sctGeography ? "::geometry" : "" )
.arg( P->endianString() );
Expand Down

0 comments on commit 5bdb795

Please sign in to comment.