<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We use MapServer via the SWIG interface for C#, loading a mapfile and rendering it with code similar to:</p>
<p class="MsoNormal">  mapscript.msLoadMapFromString(mapfile, null);</p>
<p class="MsoNormal">  imageObj io = mapObject.draw();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Our layers largely draw from database tables, lately we've started consuming remote WMS services and have found that these services are occassionally unavailable (such as reporting a "404" HTTP status). The "draw()" method throws an exception
 in such a case, reporting within the exception message the failing layer and the status.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a way to change this behavior? We'd like a softer landing: could we define the "must have" layers and allow others to be drawn or skipped based upon data availability. We'd also want to be able to query the mapObj regarding each
 layer's success or failure.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Can this be done in MapServer 6.1-DEV?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">- Phil Anzel, contractor for USDA/NRCS/ITC (Web Soil Survey Team)</p>
<p class="MsoNormal"> </p>
</div>
<br>
<br>
<br>
<br>
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil
 or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
</body>
</html>