<!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> </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? You seem
to run your own Mapserver. Then you can see from the Apache access log the
requests that your client is actually sending. 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 GetFeatureInfo request
from access log and resent it with web browser. See what comes back, and
have a look at the Mapserver errorfile which collects the DEBUG data. It
might be better to send GetFeatureInfo requests first against polygon layer
because then it is easier to hit a feature by mouse click. By hand editing
the request you will have a full control in what happens. When you know
that the system works with 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> </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><<A
href="mailto:stelaanders@gmail.com">stelaanders@gmail.com</A>></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>
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" "<A href="http://localhost/cgi-bin/mapserv.exe"
target=_blank>http://localhost/cgi-bin/mapserv.exe</A>?"
<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 "<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>"><BR><ServiceExceptionReport
version="1.1.1"><BR><ServiceException><BR></ServiceException><BR></ServiceExceptionReport><BR><BR><BR>Any
idea whats
happening?<BR><BR>Stella<BR><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>