Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
postgres provider: use same precision in st_makeenvelope and BOX3D
  • Loading branch information
jef-n committed Apr 4, 2012
1 parent c0b7208 commit 2aa8a59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -541,10 +541,10 @@ void QgsPostgresProvider::select( QgsAttributeList fetchAttributes, QgsRectangle
else
{
qBox = QString( "st_makeenvelope(%1,%2,%3,%4,%5)" )
.arg( rect.xMinimum() )
.arg( rect.yMinimum() )
.arg( rect.xMaximum() )
.arg( rect.yMaximum() )
.arg( rect.xMinimum(), 0, 'f', 16 )
.arg( rect.yMinimum(), 0, 'f', 16 )
.arg( rect.xMaximum(), 0, 'f', 16 )
.arg( rect.yMaximum(), 0, 'f', 16 )
.arg( mRequestedSrid.isEmpty() ? mDetectedSrid : mRequestedSrid );
}

Expand Down

0 comments on commit 2aa8a59

Please sign in to comment.