<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5848" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010>Did you try to find the problem first?&nbsp; You seem 
to run your own Mapserver.&nbsp; Then you can see from the Apache access log the 
requests that your client is actually sending.&nbsp;MS4W installation the log 
file is by default at ms4w\apache\logs\access.log</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010>Add DEBUG 5 into LAYER definitions in your mapfile. 
</SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010>Copy and paste some failing&nbsp;GetFeatureInfo request 
from access log and resent it with web browser.&nbsp; See what comes back, and 
have a look at the Mapserver errorfile which collects the DEBUG data.&nbsp; It 
might be better to send GetFeatureInfo requests first against polygon layer 
because then it is easier to hit a feature by mouse click.&nbsp; By hand editing 
the request you will have a full control in what happens.&nbsp; When you know 
that the system works with&nbsp;browser you can trust that Mapserver side is OK 
and you can continue to OpenLayers or other clients.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=886285507-27012010>-Jukka Rahkonen-</SPAN></FONT></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Lähettäjä:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>stela 
  anders<BR><B>Lähetetty:</B> 26. tammikuuta 2010 21:33<BR><B>Vastaanottaja:</B> 
  MapserverList OSGEO<BR><B>Aihe:</B> [mapserver-users] Re: WMSGetFeatureInfo 
  problem (No results,using OL)<BR></FONT><BR></DIV>
  <DIV></DIV>Any idea whats happening?<BR>I lost all day trying to fix that, but 
  got nothing :(<BR><BR>Stella<BR><BR><BR>
  <DIV class=gmail_quote>2010/1/25 stela anders <SPAN dir=ltr>&lt;<A 
  href="mailto:stelaanders@gmail.com">stelaanders@gmail.com</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello 
    guys...<BR><BR>My mapfile:<BR><BR>...<BR>&nbsp; 
    PROJECTION<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    "+init=epsg:4326"<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; "wms_title"&nbsp;&nbsp;&nbsp;&nbsp; 
    "WMS Server" <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    "wms_onlineresource" "<A href="http://localhost/cgi-bin/mapserv.exe" 
    target=_blank>http://localhost/cgi-bin/mapserv.exe</A>?"&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    "wms_srs"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "EPSG:4326 EPSG:42304 
    EPSG:42101 EPSG:4269" <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp; 'wms_feature_info_mime_type' "text/html" 
    <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; 
    "wms_title"&nbsp;&nbsp;&nbsp; "Test"&nbsp;&nbsp; 
    ##required<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    &nbsp;"wms_include_items" "all"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp; &nbsp;"wms_feature_info_mime_type" "text/html" 
    &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 "Connection.map" 
    <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA "the_geom from viwtest USING 
    UNIQUE oid USING SRID=0"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    PROJECTION<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    "+init=epsg:4326"<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; "header.html" 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE 
    "template.html"&nbsp;&nbsp;&nbsp;&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOOTER&nbsp;&nbsp; 
    "footer.html" <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("getfeatureinfo",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="ISO-8859-1" standalone="no" ?&gt;<BR>&lt;!DOCTYPE 
    ServiceExceptionReport SYSTEM "<A 
    href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd" 
    target=_blank>http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</A>"&gt;<BR>&lt;ServiceExceptionReport 
    version="1.1.1"&gt;<BR>&lt;ServiceException&gt;<BR>&lt;/ServiceException&gt;<BR>&lt;/ServiceExceptionReport&gt;<BR><BR><BR>Any 
    idea whats 
happening?<BR><BR>Stella<BR><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>