Creating querymap via CGI parameters

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Sat Oct 16 09:47:05 PDT 2004


> -----Original Message-----
> From: Mike Jackson [mailto:mj at sci.fi] 
> Sent: Saturday, 16 October, 2004 08:53
> To: Kralidis,Tom [Burlington]
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Creating querymap via CGI 
> parameters
> 
> 
> Kralidis,Tom [Burlington] wrote:
> 
> >Hi,
> >
> >In the itasca demo, querying features displays a standard 
> querymap, as 
> >well as cached query.
> >
> >Looking at the HTML, it looks like:
> >
> >Standard querymap: ms_tmp/DEMO10978846173120.gif
> >
> >Cached query: 
> >/cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfi
> le=c:/ms4w
> >/
> >tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln
> 2&mode=map&
> >size=200+200
> >
> >How can one replicate this behaviour (i.e. output a 
> querymap) with CGI 
> >parameters through MapServer CGI?
> >
> 
> Hi Tom,
>  I think this might be what you're looking for:
> 
> <input type="hidden" name="savequery" value="true">
>

Didn't work.  I'm trying to do this via GET, i.e.:

http://host/cgi-bin/mapserv?map=map/config.map&mode=querymap&img.x=291&i
mg.y=184&imgext=-86.82379248688089%2042.77901146125532%20-80.82379248631
712%2046.52901146160768&qlayer=man_OHMI&buffer=20&savequery=true

But the result I get is:

msQueryByPoint(): Search returned no results. No matching record(s)
found. 

If I do the exact same query as OGC:WMS GetFeatureInfo, I get records
back.  So I'm guessing something in my CGI GET call is incorrect?

What I'm trying to do is, when an OGC:WMS client makes a GetFeatureInfo
request with format text/html, the HTML returned (via templates defined
in mapfile) has a small image of the features highlighted inline in the
HTML.

..Tom



 
> --
> mike
> 



More information about the MapServer-users mailing list