<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  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="margin-left: 120px; color: rgb(51, 153, 102);"><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>&nbsp;</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>
</body>
</html>