<html>
  <head>
    <style type="text/css">
      <!--
        body { font-variant: normal; margin-top: 4px; margin-bottom: 1px; line-height: normal; margin-left: 4px; margin-right: 4px }
        p { margin-top: 0; margin-bottom: 0 }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">I&#39;m no expert on this one&#44; but . . .</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">If you do an NQUERY Mapserver needs to know which layer you plan on querying&#44; either by name&#44; explicitly through the call &#40;layer&#61;&#63;&#63;&#41; or by having the mapfile give them up by default &#40;STATUS&#61;default &#63;&#63;&#41;&#44; either way&#44; mapserver need to know somehow what to apply the query to&#44; I think.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">Also&#44; how do you want mapserver to output the results of the NQUERY&#63; by templated output or . . . &nbsp;you can use NQUERYMAP I believe to get an image back of the NQUERY . . .</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; Paul james &lt;pauljame@gmail.com&gt; wrote:<br>    </p>
    <div style="margin-bottom: 0; margin-top: 0; padding-left: 7px; border-left: solid 1px #050505; background-color: #f3f3f3; margin-left: 15px; margin-right: 0">
      <div http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <p style="margin-bottom: 0; margin-top: 0">
          Hello guys...        </p>
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          I&#180;m got this error when trying to execute a Nquery :        </p>
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          <a href="http://localhost/cgi-bin-54/mapserv.exe?map=Map.map&mode=nquery&LAYERS=TEST&mapext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&imgext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&map_size=1221+762&imgxy=1221+762&imgbox=0+0+1221+762">http://localhost/cgi-bin-54/mapserv.exe&#63;map&#61;Map.map&amp;mode&#61;nquery&amp;LAYERS&#61;TEST&amp;mapext&#61;-58.358076171875&#43;-11.42570625&#43;-57.193525390625&#43;-10.37101875&amp;imgext&#61;-58.358076171875&#43;-11.42570625&#43;-57.193525390625&#43;-10.37101875&amp;map_size&#61;1221&#43;762&amp;imgxy&#61;1221&#43;762&amp;imgbox&#61;0&#43;0&#43;1221&#43;762</a>        </p>
      </div>
      <div>
<br>          
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          msDrawMap&#40;&#41;: Image handling error. Failed to draw layer named &#39;TEST&#39;.<br><br>But&#44; If I execute the same url with &quot;mode&#61;map&quot;&#44; the image is generated fine... What this error means&#63;<br>        </p>
      </div>
      <div>
<br>          
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          TEST Layer        </p>
      </div>
      <div>
<br>          
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          LAYER<br>NAME TEST<br>GROUP &quot;TE&quot;<br>TYPE polygon<br>STATUS ON<br>CONNECTIONTYPE PLUGIN<br>PLUGIN &quot;msplugin_mssql2008.dll&quot;<br>CONNECTION &quot;server&#61;X&#59;Integrated Security&#61;false&#59;database&#61;X&#59;uid&#61;X&#59;pwd&#61;X&quot;<br>DATA &quot;the_geom from viw USING UNIQUE oid USING SRID&#61;0&quot;<br>CLASS<br>TEMPLATE &quot;template.html&quot;<br>NAME &quot;X&quot;<br>STYLE<br>OUTLINECOLOR 150 150 150<br>WIDTH 1<br>END<br>END<br>END        </p>
      </div>
      <div>
        <p style="margin-bottom: 0; margin-top: 0">
          <br>
          Thanks<br><br>Paul
        </p>
      </div>
    </div>
  </body>
</html>