<br><font size=2 face="sans-serif">Stela,</font>
<br><font size=2 face="sans-serif">In that example you are querying layers
Test1 and Test2.</font>
<br><font size=2 face="sans-serif">Below you defined your control with
laye</font><font size=3>r _test</font>
<br><font size=3>It is confusing...</font>
<br><font size=3>You should try with a simpler example. I suggest you create
a mapfile with one layer (don't forget the tolerance and template), create
the wms layer in Openlayer and define the control on this layer only.</font>
<br><font size=3>Steve</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction de la santé environnementale et de la toxicologie<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>stela anders &lt;stelaanders@gmail.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">27/01/2010 08:35 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">&quot;Fawcett, David (MPCA)&quot; &lt;David.Fawcett@state.mn.us&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">MapserverList OSGEO &lt;mapserver-users@lists.osgeo.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] Re: WMSGetFeatureInfo
problem (No results, &nbsp; &nbsp; &nbsp; &nbsp; using OL)</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Hi David!<br>
<br>
The url is :<br>
</font><font size=3 color=blue><u><br>
</u></font><a href="http://localhost/cgi-bin/mapserv.exe?map=map.map&amp;&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;LAYERS=Test1,Test2&amp;QUERY_LAYERS=Test1,Test2&amp;STYLES=,&amp;BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&amp;FEATURE_COUNT=10&amp;HEIGHT=257&amp;WIDTH=1221&amp;FORMAT=image%2Fpng&amp;INFO_FORMAT=text%2Fhtml&amp;SRS=EPSG%3A4326&amp;X=366&amp;Y=217"><font size=3 color=blue><u>http://localhost/cgi-bin/mapserv.exe?map=map.map&amp;&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;LAYERS=Test1,Test2&amp;QUERY_LAYERS=Test1,Test2&amp;STYLES=,&amp;BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&amp;FEATURE_COUNT=10&amp;HEIGHT=257&amp;WIDTH=1221&amp;FORMAT=image%2Fpng&amp;INFO_FORMAT=text%2Fhtml&amp;SRS=EPSG%3A4326&amp;X=366&amp;Y=217</u></font></a><font size=3><br>
<br>
Executing that URL direct in browser generate that:<br>
<br>
Content-type: application/vnd.ogc.se_xml <br>
<br>
Thanks<br>
<br>
Stella<br>
</font>
<br><font size=3>2010/1/26 Fawcett, David (MPCA) &lt;</font><a href=mailto:David.Fawcett@state.mn.us><font size=3 color=blue><u>David.Fawcett@state.mn.us</u></font></a><font size=3>&gt;</font>
<br><font size=2 color=#1f497d>Stella, </font>
<p><font size=2 color=#1f497d>&nbsp;</font>
<p><font size=2 color=#1f497d>What does the getFeatureInfo call look like?&nbsp;
</font>
<p><font size=2 color=#1f497d>&nbsp;</font>
<p><font size=2 color=#1f497d>Use Firebug to find the URL used to make
the request and post it here.&#8217;</font>
<p><font size=2 color=#1f497d>&nbsp;</font>
<p><font size=2 color=#1f497d>David.</font>
<p><font size=2 color=#1f497d>&nbsp;</font>
<p><font size=2><b>From:</b> </font><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target=_blank><font size=2 color=blue><u>mapserver-users-bounces@lists.osgeo.org</u></font></a><font size=2>
[mailto:</font><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target=_blank><font size=2 color=blue><u>mapserver-users-bounces@lists.osgeo.org</u></font></a><font size=2>]
<b>On Behalf Of </b>stela anders<b><br>
Sent:</b> Tuesday, January 26, 2010 1:33 PM<b><br>
To:</b> MapserverList OSGEO<b><br>
Subject:</b> [mapserver-users] Re: WMSGetFeatureInfo problem (No results,
using OL)</font>
<p><font size=3>&nbsp;</font>
<p><font size=3>Any idea whats happening?<br>
I lost all day trying to fix that, but got nothing :(<br>
<br>
Stella<br>
</font>
<p><font size=3>2010/1/25 stela anders &lt;</font><a href=mailto:stelaanders@gmail.com target=_blank><font size=3 color=blue><u>stelaanders@gmail.com</u></font></a><font size=3>&gt;</font>
<p><font size=3>Hello guys...<br>
<br>
My mapfile:<br>
<br>
...<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;+init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEPATH 'C:\temp\'<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEURL '/tmp/'<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; QUERYFORMAT text/html&nbsp;&nbsp;&nbsp;
&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_title&quot;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;WMS Server&quot; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_onlineresource&quot;
&quot;</font><a href="http://localhost/cgi-bin/mapserv.exe" target=_blank><font size=3 color=blue><u>http://localhost/cgi-bin/mapserv.exe</u></font></a><font size=3>?&quot;&nbsp;
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_srs&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269&quot; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'wms_feature_info_mime_type'
&quot;text/html&quot; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp; QUERYMAP<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE -1 -1<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE hilite<br>
&nbsp;&nbsp;&nbsp; END<br>
...<br>
<br>
LAYER<br>
...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_title&quot;&nbsp;&nbsp;&nbsp;
&quot;Test&quot;&nbsp;&nbsp; ##required<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&quot;wms_include_items&quot;
&quot;all&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&quot;wms_feature_info_mime_type&quot;
&quot;text/html&quot; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE POINT<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; INCLUDE &quot;Connection.map&quot;
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA &quot;the_geom from viwtest
USING UNIQUE oid USING SRID=0&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;+init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TOLERANCE 5<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;HEADER&nbsp;&nbsp; &quot;header.html&quot;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE &quot;template.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOOTER&nbsp;&nbsp; &quot;footer.html&quot;
<br>
...<br>
<br>
Templates:<br>
Header.html<br>
&lt;!-- MapServer Template --&gt;<br>
&lt;html&gt; <br>
&nbsp; &lt;head&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;title&gt;MapServer Template Sample&lt;/title&gt;
<br>
&nbsp; &lt;/head&gt; <br>
<br>
Template.html<br>
&lt;!-- MapServer Template --&gt;<br>
&lt;body&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;b&gt;OID:&lt;/b&gt; [oid]<br>
&nbsp; &lt;/body&gt; <br>
<br>
Footer.html<br>
&lt;/html&gt;<br>
<br>
WMSGetFeatureInfo&nbsp; Javascript (OpenLayer)<br>
<br>
var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
layers: [_test], <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
title: 'Click on the map to get information on layers', <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
queryVisible: true, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
infoFormat: 'text/html' <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}); <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
infoCtl.events.register(&quot;getfeatureinfo&quot;,map,showInfo); <br>
<br>
&nbsp;function showInfo(evt) { &nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(evt.text);<br>
} <br>
<br>
<br>
I´m getting that :<br>
<br>
&lt;html&gt; <br>
&nbsp; &lt;head&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;title&gt;MapServer Template Sample&lt;/title&gt;
<br>
&nbsp; &lt;/head&gt; Content-type: application/vnd.ogc.se_xml<br>
<br>
&lt;?xml version='1.0' encoding=&quot;ISO-8859-1&quot; standalone=&quot;no&quot;
?&gt;<br>
&lt;!DOCTYPE ServiceExceptionReport SYSTEM &quot;</font><a href=http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd target=_blank><font size=3 color=blue><u>http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</u></font></a><font size=3>&quot;&gt;<br>
&lt;ServiceExceptionReport version=&quot;1.1.1&quot;&gt;<br>
&lt;ServiceException&gt;<br>
&lt;/ServiceException&gt;<br>
&lt;/ServiceExceptionReport&gt;<br>
<br>
<br>
Any idea whats happening?<br>
<br>
Stella<br>
</font>
<p><font size=3>&nbsp;</font>
<p><tt><font size=2>_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>