<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<meta name="GENERATOR" content="MSHTML 8.00.6001.19154">
</head>
<body fpstyle="1" ocsi="0">
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012">Perhaps you do not hit the points? See tolerance and toleranceunits in
<a href="http://mapserver.org/mapfile/layer.html">http://mapserver.org/mapfile/layer.html</a> and set tolerance to quite many pixels for eliminating the possibility that your click just does not hit the target.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012">If that does not help I would have another try by copying the data from PostGIS ínto shapefile and dublicating the layer. If GetFeatureInfo works with shapefile
then the trouble must have something to do with communication with PostGIS.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012">I wonder why do you have layer status=OFF instead of ON.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="576284506-10042012">-Jukka Rahkonen- </span></font></div>
<font color="#0000ff" size="2" face="Arial"></font><br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left"><font size="2" face="Tahoma">Neelima Emmani<span class="576284506-10042012"><font color="#0000ff" face="Arial"> wrote: </font></span><br>
</font><br>
</div>
<div></div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 10pt">
Hi All, <br>
<br>
I am having a problem in retrieving getfeatureinfo. Result in the browser is
<pre style="COLOR: rgb(255,0,0)">GetFeatureInfo results: Search returned no results.</pre>
<ul>
<li>Below is the <span style="COLOR: rgb(0,128,0)">url</span>, i am accessing to get feature info -<br>
</li></ul>
<span style="COLOR: rgb(0,0,128)">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&Layers=maps&SRS=EPSG:4326&BBOX=-83.61145,24.726875,-78.118286,27.196014&X=529&Y=228&WIDTH=1000&HEIGHT=500&QUERY_LAYERS=maps</span><br>
<br>
<ul>
<li><span style="COLOR: rgb(0,128,0)">Map file</span> -<br>
</li></ul>
<p style="MARGIN-LEFT: 120px">MAP<br>
NAME "MH"<br>
# Map image size<br>
SIZE 600 600<br>
UNITS meters<br>
EXTENT -86.731680 24.422064 -76.149835 30.424575<br>
FONTSET './etc/fonts.txt'<br>
SYMBOLSET './etc/symbols.txt'<br>
CONFIG "PROJ_LIB" "C:/ms4w/httpd.d/proj/nad/"<br>
<br>
PROJECTION<br>
'proj=longlat'<br>
'ellps=WGS84'<br>
'towgs84=0,0,0,0,0,0,0'<br>
'no_defs'<br>
END<br>
<br>
# Background color for the map canvas -- change as desired<br>
IMAGECOLOR 255 255 255<br>
IMAGEQUALITY 95<br>
IMAGETYPE agg<br>
<br>
OUTPUTFORMAT<br>
NAME agg<br>
DRIVER AGG/PNG<br>
IMAGEMODE RGB<br>
END</p>
<p style="MARGIN-LEFT: 120px"><br>
# Legend<br>
LEGEND<br>
IMAGECOLOR 255 255 255<br>
STATUS ON<br>
KEYSIZE 18 12<br>
LABEL<br>
TYPE BITMAP<br>
SIZE MEDIUM<br>
COLOR 0 0 89<br>
END<br>
END<br>
<br>
# Web interface definition. Only the template parameter<br>
# is required to display a map. See MapServer documentation<br>
WEB<br>
# Set IMAGEPATH to the path where MapServer should<br>
# write its output.<br>
IMAGEPATH '/ms4w/tmp/ms_tmp/'<br>
<br>
# Set IMAGEURL to the url that points to IMAGEPATH<br>
# as defined in your web server configuration<br>
IMAGEURL '/ms_tmp/'<br>
<br>
# WMS server settings<br>
METADATA<br>
'ows_title' 'MH'<br>
'ows_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map&'<br>
'ows_srs' 'EPSG:4326 EPSG:900913'<br>
'ows_enable_request' 'GetMap GetFeature GetFeatureInfo *' ##necessary <br>
"wms_feature_info_mime_type" "text/html"<br>
"wms_getfeatureinfo"<br>
"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map&"<br>
"wms_featureinfoformat" "text/html"<br>
"wfs_abstract" "This text describes my WFS service." <br>
<br>
END<br>
<br>
#Scale range at which web interface will operate<br>
# Template and header/footer settings<br>
# Only the template parameter is required to display a map. See MapServer documentation<br>
TEMPLATE 'template.html'<br>
END<br>
<br>
LAYER<br>
NAME 'maps'<br>
TYPE POINT<br>
DUMP true<br>
TEMPLATE 'template.html'<br>
HEADER 'header.html'<br>
FOOTER 'footer.html'<br>
EXTENT -86.731680 24.422064 -76.149835 30.424575<br>
CONNECTIONTYPE postgis<br>
CONNECTION "dbname='postgis' host=localhost port=5432 user='postgres' password='xxxxxx' sslmode=disable"<br>
DATA 'the_geom FROM "maps" USING UNIQUE id USING srid=4326'<br>
FILTER ( geometrytype("the_geom") IN ('POINT','MULTIPOINT') )<br>
METADATA<br>
'ows_title' 'maps'<br>
'wfs_typename' 'maps'<br>
'wfs_version' '1.0.0'<br>
'wfs_connectiontimeout' '60'<br>
'wfs_maxfeatures' '150'<br>
'wfs_filter' 'GET'<br>
'wms_include_items' 'all' <br>
'wfs_featureid' 'the_geom'<br>
'gml_include_items' 'all' <br>
</p>
<p style="MARGIN-LEFT: 120px"> END<br>
STATUS OFF<br>
TRANSPARENCY 100<br>
PROJECTION<br>
'proj=longlat'<br>
'ellps=WGS84'<br>
'towgs84=0,0,0,0,0,0,0'<br>
'no_defs'<br>
END<br>
CLASS<br>
NAME 'maps' <br>
STYLE<br>
SYMBOL "circle" <br>
SIZE 7.0 <br>
OUTLINECOLOR 0 0 0<br>
COLOR 170 211 227<br>
END<br>
END<br>
END<br>
<br>
END</p>
<p style="COLOR: rgb(51,153,102); MARGIN-LEFT: 120px"><br>
</p>
<span style="COLOR: rgb(51,153,102)">Template.html</span> --<br>
<!-- MapServer Template --><br>
<tr><td>[lrn]</td><td>[NAME]</td><td>[LAT]</td><td>[LON]</td><td>[ELEVATION]</td><td>[QUADNAME]</td></tr><br>
<br>
<span style="COLOR: rgb(0,128,0)">header.html</span>--<br>
<!-- MapServer Template --><br>
<font size+1><b>Layer: airports</b></font><p><br>
<table cellpadding=5 cellspacing=2 border=0><br>
<tr bgcolor=#CCCCCC><td bgcolor=#ffffff> </td><th>name</th><th>latitude</th><th>longitude</th><th>address</th><th>description</th></tr><br>
<br>
<span style="COLOR: rgb(0,128,0)">footer.html</span> --<br>
<!-- MapServer Template --><br>
</table><p><br>
<br>
<div>If any finds any fault with my code or anything that should be added to get feature info then please let me know.<br>
Awaiting reply.<br>
<br>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">With Regards,<br>
Neelima Emmani<br>
</div>
</div>
</div>
</blockquote>
</body>
</html>