[mapserver-commits] r7126 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Nov 30 12:46:07 EST 2007


Author: warmerdam
Date: 2007-11-30 12:46:07 -0500 (Fri, 30 Nov 2007)
New Revision: 7126

Modified:
   trunk/mapserver/mapowscommon.c
Log:
improve precision of bounding boxes, for WCS

Modified: trunk/mapserver/mapowscommon.c
===================================================================
--- trunk/mapserver/mapowscommon.c	2007-11-30 16:29:59 UTC (rev 7125)
+++ trunk/mapserver/mapowscommon.c	2007-11-30 17:46:07 UTC (rev 7126)
@@ -502,8 +502,8 @@
   sprintf( dim_string, "%d", dimensions );
   xmlNewProp(psRootNode, BAD_CAST "dimensions", BAD_CAST dim_string);
 
-  sprintf(LowerCorner, "%g %g", minx, miny);
-  sprintf(UpperCorner, "%g %g", maxx, maxy);
+  sprintf(LowerCorner, "%.15g %.15g", minx, miny);
+  sprintf(UpperCorner, "%.15g %.15g", maxx, maxy);
 
   /* add child elements */
   xmlNewChild(psRootNode, psNsOws,BAD_CAST "LowerCorner",BAD_CAST LowerCorner);
@@ -543,8 +543,8 @@
   sprintf( dim_string, "%d", dimensions );
   xmlNewProp(psRootNode, BAD_CAST "dimensions", BAD_CAST dim_string);
 
-  sprintf(LowerCorner, "%g %g", minx, miny);
-  sprintf(UpperCorner, "%g %g", maxx, maxy);
+  sprintf(LowerCorner, "%.15g %.15g", minx, miny);
+  sprintf(UpperCorner, "%.15g %.15g", maxx, maxy);
 
   /* add child elements */
   xmlNewChild(psRootNode, psNsOws,BAD_CAST "LowerCorner",BAD_CAST LowerCorner);



More information about the mapserver-commits mailing list