[Mapserver-users] RE: querymap with WMS GetFeatureInfo

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Mon Jun 21 07:57:09 PDT 2004


Hi,

I think I may have figured it out.  Putting this in my footer.html for
the query template of the layer (with querymap defined in the .map file,
of course):

<img
src="/cgi-bin/mapserv/envirodat?mode=querymap&img.x=[img.x]&img.y=[img.y
]&imgext=[imgext]">

..works as expected.

..Tom


> -----Original Message-----
> From: Kralidis,Tom [Burlington] 
> Sent: Monday, June 21, 2004 8:29 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: querymap with WMS GetFeatureInfo
> 
> 
> 
> Hi,
> 
> In the itasca demo, demo_footer.html provides the following 
> query footer template chunk:
> 
> <table cellpadding="3" cellspacing="0" border="0">
>  <tr>
>   <td><img border="2" src="[img]"></td>
>   <td><img border="2" 
> src="[program]?map=[map]&queryfile=[map_web_imagepath]DEMO[id]
> .qy[get_layers]&mode=map&size=200+200"></td>
>  </tr>
>  <tr>
>   <th align="center">standard querymap</th>
>   <th align="center">cached query</th>
>  </tr>
> </table>
> 
> ...which, when running the demo in query mode, provides a 
> querymap and cached querymap image.
> 
> As we are aware, MapServer query templates get used whenever 
> OGC:WMS GetFeatureInfo is called with info_format=text/html.
> 
> My question is how would one replicate the querymap-ish 
> behaviour through an HTML template in WMS server mode?  The 
> chunk above in WMS server mode returns blank images, most 
> likely because the template values are usually passed through 
> a HTML form-based app.
> 
> Cheers
> 
> ..Tom
> 
> =========================
> Tom Kralidis
> Systems Scientist
> Environment Canada
> Tel: +01-905-336-4409
> http://www.ec.gc.ca/
> 




More information about the MapServer-users mailing list