<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>GetfeatureInfo params in Map-File</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>

<BR><FONT SIZE=2 FACE="Arial">I have been struggling a couple of hours trying to understand the correct configuration of<BR>
a WMS-service with Mapserver (5.0) where I would like to use GetFeatureInfo. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I want to make a call to getFeatureInfo and have the result in GML</FONT>

<BR><FONT SIZE=2 FACE="Arial">I use Openlayers to view and query the service</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Any way I do I get a INFO_FORMAT=text/html in the request which returns an error from MapServer (unsupported INFO_FORMAT (text/html)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">If I change it manually to INFO_FORMAT=application/vnd.ogc.gml (or INFO_FORMAT=gml)</FONT>

<BR><FONT SIZE=2 FACE="Arial">and type in the URL directly in Internet Explorer then it works. </FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">I </FONT><FONT COLOR="#000000" SIZE=2 FACE="Arial">have set the following</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For the MAP/WEB tag I have set</FONT>

<BR><FONT SIZE=2 FACE="Arial">QUERYFORMAT application/vnd.ogc.gml</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For the LAYER tag should the following TAGS be set</FONT>

<BR><FONT SIZE=2 FACE="Arial">DUMP TRUE </FONT>

<BR><FONT SIZE=2 FACE="Arial">TEMPLATE foo</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I can't se the logic in using the TEMPLATE here, I just want plain XML/GML</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">,</FONT><FONT SIZE=2 FACE="Arial"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Arial">anyhow</FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Arial"></FONT> <FONT SIZE=2 FACE="Arial">I set it to foo as I seen someone else has done.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">But if I understand it correctly so by using the TEMPLATE-tag then the layer is queryable.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For the LAYER/METADATA tag I have tested</FONT>

<BR><FONT SIZE=2 FACE="Arial">&quot;gml_include_items&quot; &quot;all&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&quot;wms_include_items&quot; &quot;all&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">with no change.</FONT>
</P>
<BR>

<P><FONT COLOR="#000000" SIZE=2 FACE="Arial">With the above setting all calls to GetFeatureInfo is using INFO_FORMAT=text/HTML</FONT>

<BR><FONT SIZE=2 FACE="Arial">I have tried it in ArcMap and Openlayers (where I also tried to set INFO_FORMAT=gml) as an optional argument.</FONT>
</P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Arial">Anyone who can se what wrong I'm doing? I can't find any more documentation on the issue.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">regards</FONT><BR>
<FONT SIZE=2 FACE="Arial">Michael</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">------------------------------------------------------------------<BR>
<B></B></FONT><B></B><B><FONT COLOR="#800000" FACE="Garamond">MetaGIS AB<I><BR>
Michael Östling<BR>
</I></FONT></B><I></I><FONT COLOR="#800000" SIZE=2 FACE="Garamond">Mob: 070-279 19 76<BR>
Tel: 023 - 702 20 10<BR>
ePost: </FONT><A HREF="mailto:michael.ostling@metagis.se"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Garamond">michael.ostling@metagis.se</FONT></U></A><BR>
<FONT COLOR="#800000" SIZE=2 FACE="Garamond">Adress: Britsarvsvägen 28a, 791 36 FALUN, Sweden<BR>
Org Nr: 556638-7170<BR>
</FONT><FONT SIZE=2 FACE="Arial">------------------------------------------------------------------</FONT>
</P>
<BR>

</BODY>
</HTML>