Re: Help with NQuery error (CGI) using MSSQL2008

1 message Options
Embed this post
Permalink
Paul james

Re: Help with NQuery error (CGI) using MSSQL2008

Reply Threaded More More options
Print post
Permalink
It´s not the case... I´m using Layers on URL and the output is in template.html...
 
I executed the same test using POSTGIS connection, and It worked fine ,,, I got my template filled up as result...
Is there any difference using nquery with MSSQL2008 or maybe is a bug ?
 
Thanks
 
Paul

On Thu, Oct 29, 2009 at 11:06 AM, Bob Basques <[hidden email]> wrote:

I'm no expert on this one, but . . .


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.


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 . . .


bobb




>>> Paul james <[hidden email]> wrote:

Hello guys...

I´m got this error when trying to execute a Nquery :


msDrawMap(): Image handling error. Failed to draw layer named 'TEST'.

But, If I execute the same url with "mode=map", the image is generated fine... What this error means?


TEST Layer


LAYER
NAME TEST
GROUP "TE"
TYPE polygon
STATUS ON
CONNECTIONTYPE PLUGIN
PLUGIN "msplugin_mssql2008.dll"
CONNECTION "server=X;Integrated Security=false;database=X;uid=X;pwd=X"
DATA "the_geom from viw USING UNIQUE oid USING SRID=0"
CLASS
TEMPLATE "template.html"
NAME "X"
STYLE
OUTLINECOLOR 150 150 150
WIDTH 1
END
END
END


Thanks

Paul



_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users