<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> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>stela anders <stelaanders@gmail.com>@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">"Fawcett, David (MPCA)" <David.Fawcett@state.mn.us></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 <mapserver-users@lists.osgeo.org></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, 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&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&Y=217"><font size=3 color=blue><u>http://localhost/cgi-bin/mapserv.exe?map=map.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&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) <</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>></font>
<br><font size=2 color=#1f497d>Stella, </font>
<p><font size=2 color=#1f497d> </font>
<p><font size=2 color=#1f497d>What does the getFeatureInfo call look like?
</font>
<p><font size=2 color=#1f497d> </font>
<p><font size=2 color=#1f497d>Use Firebug to find the URL used to make
the request and post it here.’</font>
<p><font size=2 color=#1f497d> </font>
<p><font size=2 color=#1f497d>David.</font>
<p><font size=2 color=#1f497d> </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> </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 <</font><a href=mailto:stelaanders@gmail.com target=_blank><font size=3 color=blue><u>stelaanders@gmail.com</u></font></a><font size=3>></font>
<p><font size=3>Hello guys...<br>
<br>
My mapfile:<br>
<br>
...<br>
PROJECTION<br>
"+init=epsg:4326"<br>
END<br>
<br>
WEB<br>
IMAGEPATH 'C:\temp\'<br>
IMAGEURL '/tmp/'<br>
QUERYFORMAT text/html
<br>
<br>
METADATA<br>
"wms_title"
"WMS Server" <br>
"wms_onlineresource"
"</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>?"
<br>
"wms_srs"
"EPSG:4326 EPSG:42304 EPSG:42101 EPSG:4269" <br>
'wms_feature_info_mime_type'
"text/html" <br>
END<br>
END<br>
<br>
QUERYMAP<br>
COLOR 255 0 0<br>
SIZE -1 -1<br>
STATUS OFF<br>
STYLE hilite<br>
END<br>
...<br>
<br>
LAYER<br>
...<br>
METADATA<br>
"wms_title"
"Test" ##required<br>
"wms_include_items"
"all"<br>
"wms_feature_info_mime_type"
"text/html"
<br>
END
<br>
TYPE POINT<br>
STATUS ON<br>
INCLUDE "Connection.map"
<br>
DATA "the_geom from viwtest
USING UNIQUE oid USING SRID=0"<br>
PROJECTION<br>
"+init=epsg:4326"<br>
END<br>
<br>
TOLERANCE 5<br>
HEADER "header.html"
<br>
TEMPLATE "template.html"
<br>
FOOTER "footer.html"
<br>
...<br>
<br>
Templates:<br>
Header.html<br>
<!-- MapServer Template --><br>
<html> <br>
<head> <br>
<title>MapServer Template Sample</title>
<br>
</head> <br>
<br>
Template.html<br>
<!-- MapServer Template --><br>
<body> <br>
<b>OID:</b> [oid]<br>
</body> <br>
<br>
Footer.html<br>
</html><br>
<br>
WMSGetFeatureInfo Javascript (OpenLayer)<br>
<br>
var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ <br>
layers: [_test], <br>
title: 'Click on the map to get information on layers', <br>
queryVisible: true, <br>
infoFormat: 'text/html' <br>
}); <br>
<br>
infoCtl.events.register("getfeatureinfo",map,showInfo); <br>
<br>
function showInfo(evt) { <br>
alert(evt.text);<br>
} <br>
<br>
<br>
I´m getting that :<br>
<br>
<html> <br>
<head> <br>
<title>MapServer Template Sample</title>
<br>
</head> Content-type: application/vnd.ogc.se_xml<br>
<br>
<?xml version='1.0' encoding="ISO-8859-1" standalone="no"
?><br>
<!DOCTYPE ServiceExceptionReport SYSTEM "</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>"><br>
<ServiceExceptionReport version="1.1.1"><br>
<ServiceException><br>
</ServiceException><br>
</ServiceExceptionReport><br>
<br>
<br>
Any idea whats happening?<br>
<br>
Stella<br>
</font>
<p><font size=3> </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>