[mapserver-users] OWS BoundingBox output loss of precision

Fergus McDonald mapserver at schartz.net
Wed Sep 23 07:46:35 PDT 2015


I have an extent param in a MAP file declared as
-10832766.418414999
but in the WMS GetCapabilities response the BoundingBox gives it as
-1.08328e+07

There appears to be a loss of precision in mapows.c when the value is
output using the %g formatting.

I found this old fix on trac
http://trac.osgeo.org/mapserver/ticket/1232

but that resolved this issue for WCS output only, by updating %g to
%.15g within mapwcs.c

Does this fix also need to be applied to mapows.c?

The loss of precision is causing problems with client size map
calculations when working at high resolutions.


More information about the mapserver-users mailing list