From: Sandro Santilli Date: Thu, 17 Mar 2005 18:11:57 +0000 (+0000) Subject: BOX2D output reverted to .15g precision X-Git-Tag: pgis_1_0_0RC4~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f121895c123a03f897e2cb61ba70b7422fc9ffa2;p=postgis BOX2D output reverted to .15g precision git-svn-id: http://svn.osgeo.org/postgis/trunk@1541 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_box2dfloat4.c b/lwgeom/lwgeom_box2dfloat4.c index 5ebf10ad8..42af56ed9 100644 --- a/lwgeom/lwgeom_box2dfloat4.c +++ b/lwgeom/lwgeom_box2dfloat4.c @@ -88,7 +88,7 @@ Datum BOX2DFLOAT4_out(PG_FUNCTION_ARGS) char *result; int size; - size = sprintf(tmp,"BOX(%g %g,%g %g)", + size = sprintf(tmp,"BOX(%.15g %.15g,%.15g %.15g)", box->xmin, box->ymin, box->xmax, box->ymax); result= palloc(size+1); // +1= null term