<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:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi All,
<br>
<br>
I&nbsp; am having a problem in retrieving getfeatureinfo. Result in the browser is&nbsp;
<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&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;Layers=maps&amp;SRS=EPSG:4326&amp;BBOX=-83.61145,24.726875,-78.118286,27.196014&amp;X=529&amp;Y=228&amp;WIDTH=1000&amp;HEIGHT=500&amp;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>
&nbsp; NAME &quot;MH&quot;<br>
&nbsp; # Map image size<br>
&nbsp; SIZE 600 600<br>
&nbsp; UNITS meters<br>
&nbsp; EXTENT -86.731680 24.422064 -76.149835 30.424575<br>
&nbsp; FONTSET './etc/fonts.txt'<br>
&nbsp; SYMBOLSET './etc/symbols.txt'<br>
&nbsp; CONFIG &quot;PROJ_LIB&quot; &quot;C:/ms4w/httpd.d/proj/nad/&quot;<br>
<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; 'proj=longlat'<br>
&nbsp;&nbsp;&nbsp; 'ellps=WGS84'<br>
&nbsp;&nbsp;&nbsp; 'towgs84=0,0,0,0,0,0,0'<br>
&nbsp;&nbsp;&nbsp; 'no_defs'<br>
&nbsp; END<br>
<br>
&nbsp; # Background color for the map canvas -- change as desired<br>
&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp; IMAGEQUALITY 95<br>
&nbsp; IMAGETYPE agg<br>
<br>
&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp; NAME agg<br>
&nbsp;&nbsp;&nbsp; DRIVER AGG/PNG<br>
&nbsp;&nbsp;&nbsp; IMAGEMODE RGB<br>
&nbsp; END</p>
<p style="margin-left: 120px;"><br>
&nbsp; # Legend<br>
&nbsp; LEGEND<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; KEYSIZE 18 12<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE BITMAP<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE MEDIUM<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 89<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
&nbsp; # Web interface definition. Only the template parameter<br>
&nbsp; # is required to display a map. See MapServer documentation<br>
&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; # Set IMAGEPATH to the path where MapServer should<br>
&nbsp;&nbsp;&nbsp; # write its output.<br>
&nbsp;&nbsp;&nbsp; IMAGEPATH '/ms4w/tmp/ms_tmp/'<br>
<br>
&nbsp;&nbsp;&nbsp; # Set IMAGEURL to the url that points to IMAGEPATH<br>
&nbsp;&nbsp;&nbsp; # as defined in your web server configuration<br>
&nbsp;&nbsp;&nbsp; IMAGEURL '/ms_tmp/'<br>
<br>
&nbsp;&nbsp;&nbsp; # WMS server settings<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_title'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'MH'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_onlineresource'&nbsp; 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map&amp;'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_srs'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'EPSG:4326 EPSG:900913'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_enable_request'&nbsp; 'GetMap GetFeature GetFeatureInfo *'&nbsp;&nbsp; ##necessary <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_feature_info_mime_type&quot; &quot;text/html&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_getfeatureinfo&quot;<br>
&quot;http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map&amp;&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_featureinfoformat&quot; &quot;text/html&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wfs_abstract&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;This text describes my WFS service.&quot;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp; #Scale range at which web interface will operate<br>
&nbsp;&nbsp;&nbsp; # Template and header/footer settings<br>
&nbsp;&nbsp;&nbsp; # Only the template parameter is required to display a map. See MapServer documentation<br>
&nbsp;&nbsp;&nbsp; TEMPLATE 'template.html'<br>
&nbsp; END<br>
<br>
&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp; NAME 'maps'<br>
&nbsp;&nbsp;&nbsp; TYPE POINT<br>
&nbsp;&nbsp;&nbsp; DUMP true<br>
&nbsp;&nbsp;&nbsp; TEMPLATE&nbsp; 'template.html'<br>
&nbsp;&nbsp;&nbsp; HEADER 'header.html'<br>
&nbsp;&nbsp;&nbsp; FOOTER 'footer.html'<br>
&nbsp;&nbsp;&nbsp; EXTENT -86.731680 24.422064 -76.149835 30.424575<br>
&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<br>
&nbsp;&nbsp;&nbsp; CONNECTION &quot;dbname='postgis' host=localhost port=5432 user='postgres' password='xxxxxx' sslmode=disable&quot;<br>
&nbsp;&nbsp;&nbsp; DATA 'the_geom FROM &quot;maps&quot; USING UNIQUE id USING srid=4326'<br>
&nbsp;&nbsp;&nbsp; FILTER ( geometrytype(&quot;the_geom&quot;) IN ('POINT','MULTIPOINT') )<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_title' 'maps'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_typename' 'maps'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_version' '1.0.0'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_connectiontimeout' '60'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_maxfeatures' '150'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_filter' 'GET'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wms_include_items' 'all'&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wfs_featureid' 'the_geom'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'gml_include_items' 'all'&nbsp;&nbsp;&nbsp; <br>
</p>
<p style="margin-left: 120px;">&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp;&nbsp; TRANSPARENCY 100<br>
&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; 'proj=longlat'<br>
&nbsp;&nbsp;&nbsp; 'ellps=WGS84'<br>
&nbsp;&nbsp;&nbsp; 'towgs84=0,0,0,0,0,0,0'<br>
&nbsp;&nbsp;&nbsp; 'no_defs'<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'maps' <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL &quot;circle&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 7.0 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 170 211 227<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
END</p>
<p style="margin-left: 120px; color: rgb(51, 153, 102);"><br>
</p>
<span style="color: rgb(51, 153, 102);">Template.html</span> --<br>
&lt;!-- MapServer Template --&gt;<br>
&lt;tr&gt;&lt;td&gt;[lrn]&lt;/td&gt;&lt;td&gt;[NAME]&lt;/td&gt;&lt;td&gt;[LAT]&lt;/td&gt;&lt;td&gt;[LON]&lt;/td&gt;&lt;td&gt;[ELEVATION]&lt;/td&gt;&lt;td&gt;[QUADNAME]&lt;/td&gt;&lt;/tr&gt;<br>
<br>
<span style="color: rgb(0, 128, 0);">header.html</span>--<br>
&lt;!-- MapServer Template --&gt;<br>
&lt;font size&#43;1&gt;&lt;b&gt;Layer: airports&lt;/b&gt;&lt;/font&gt;&lt;p&gt;<br>
&lt;table cellpadding=5 cellspacing=2 border=0&gt;<br>
&lt;tr bgcolor=#CCCCCC&gt;&lt;td bgcolor=#ffffff&gt;&amp;nbsp;&lt;/td&gt;&lt;th&gt;name&lt;/th&gt;&lt;th&gt;latitude&lt;/th&gt;&lt;th&gt;longitude&lt;/th&gt;&lt;th&gt;address&lt;/th&gt;&lt;th&gt;description&lt;/th&gt;&lt;/tr&gt;<br>
<br>
<span style="color: rgb(0, 128, 0);">footer.html</span> --<br>
&lt;!-- MapServer Template --&gt;<br>
&lt;/table&gt;&lt;p&gt;<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>
</body>
</html>