<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'm no expert on this one, 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, either by name, explicitly through the call (layer=??) or by having the mapfile give them up by default (STATUS=default ??), either way, mapserver need to know somehow what to apply the query to, I think.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font size="3" face="Comic Sans MS">Also, how do you want mapserver to output the results of the NQUERY? by templated output or . . . 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>
>>> Paul james <pauljame@gmail.com> 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´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?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</a> </p>
</div>
<div>
<br>
</div>
<div>
<p style="margin-bottom: 0; margin-top: 0">
msDrawMap(): Image handling error. Failed to draw layer named 'TEST'.<br><br>But, If I execute the same url with "mode=map", the image is generated fine... What this error means?<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 "TE"<br>TYPE polygon<br>STATUS ON<br>CONNECTIONTYPE PLUGIN<br>PLUGIN "msplugin_mssql2008.dll"<br>CONNECTION "server=X;Integrated Security=false;database=X;uid=X;pwd=X"<br>DATA "the_geom from viw USING UNIQUE oid USING SRID=0"<br>CLASS<br>TEMPLATE "template.html"<br>NAME "X"<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>