Skip to content
Permalink
Browse files
postgres provider: use same precision in st_makeenvelope and BOX3D
  • Loading branch information
jef-n committed Apr 4, 2012
1 parent c0b7208 commit 2aa8a59c44ce3bd0e4572227d84837e942bbdd87
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/postgres/qgspostgresprovider.cpp
@@ -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 );
}

0 comments on commit 2aa8a59

Please sign in to comment.