]> granicus.if.org Git - postgis/commitdiff
BOX2D output reverted to .15g precision
authorSandro Santilli <strk@keybit.net>
Thu, 17 Mar 2005 18:11:57 +0000 (18:11 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 17 Mar 2005 18:11:57 +0000 (18:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1541 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_box2dfloat4.c

index 5ebf10ad8180d2eee276a0b4f942939831c43cdc..42af56ed9d4135e721dec4c1257f3c01419acda4 100644 (file)
@@ -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