[mapserver-users] Suppress warnings, Windows binary

Martin, Daniel DMartin at erac.com
Thu Jun 13 15:42:38 EDT 2002


I'm getting the occasional non-fatal warning from the Windows binary.  The
warning isn't even unexpected.  The issue is that it's outputting the
warnings prior to the HTML content headers, and confusing the browser into
displaying raw HTML, rather than the web page.

For example, I have a layer whose bounds are limited to a state, but the
application allows the user to zoom out beyond that state.  If the user does
so with this layer on, this happens:



Warning 503: Some objects were written outside of the file's predefined
bounds.
These objects may have invalid coordinates when the file is reopened.
Predefined bounds: (-89.107,35.9957)-(-95.7708,40.6133)

Content-type: text/html

<!-- MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=SHAPEFILE -->
<html>
<head>
...and so on...



And the entire page, in raw HTML goes out to the browser.  Is there any
setting to suppress these non-critical warnings?

Thanks,
Dan Martin




More information about the mapserver-users mailing list