Skip to content

Commit 2aa8a59

Browse files
committedApr 4, 2012
postgres provider: use same precision in st_makeenvelope and BOX3D
1 parent c0b7208 commit 2aa8a59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,10 @@ void QgsPostgresProvider::select( QgsAttributeList fetchAttributes, QgsRectangle
541541
else
542542
{
543543
qBox = QString( "st_makeenvelope(%1,%2,%3,%4,%5)" )
544-
.arg( rect.xMinimum() )
545-
.arg( rect.yMinimum() )
546-
.arg( rect.xMaximum() )
547-
.arg( rect.yMaximum() )
544+
.arg( rect.xMinimum(), 0, 'f', 16 )
545+
.arg( rect.yMinimum(), 0, 'f', 16 )
546+
.arg( rect.xMaximum(), 0, 'f', 16 )
547+
.arg( rect.yMaximum(), 0, 'f', 16 )
548548
.arg( mRequestedSrid.isEmpty() ? mDetectedSrid : mRequestedSrid );
549549
}
550550

0 commit comments

Comments
 (0)
Please sign in to comment.