<!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.5945" name=GENERATOR></HEAD>
<BODY 
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=707330407-18052010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=707330407-18052010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=707330407-18052010></SPAN><FONT face=Arial 
color=#0000ff size=2><SPAN class=707330407-18052010></SPAN></FONT><SPAN 
class=707330407-18052010>
<DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>F<SPAN 
class=707330407-18052010>irst, the image coordinates 
</SPAN>x=9.5&amp;y=50&amp;<SPAN class=707330407-18052010> do not hit 
Germany.&nbsp; Try with&nbsp;4</SPAN></FONT></FONT></FONT><SPAN 
class=707330407-18052010><FONT face=Arial color=#0000ff size=2>75,98 and you 
will get something back but I am not sure if it is Germany either.&nbsp; To get 
what you want&nbsp;you must also tell in the mapfile what attributes should be 
included in the response with "wms_include_items"</FONT></SPAN></DIV>
<DIV><SPAN class=707330407-18052010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=707330407-18052010><FONT face=Arial color=#0000ff size=2>-Jukka 
Rahkonen-</FONT></SPAN></DIV></SPAN><BR></DIV>
<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>Stefan 
  Schwarzer<BR><B>Lähetetty:</B> 18. toukokuuta 2010 
  9:57<BR><B>Vastaanottaja:</B> mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> 
  [mapserver-users] GetFeatureInfo returns no results. Why?<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi there,</DIV>
  <DIV><BR></DIV>
  <DIV>I am having problems getting a correct "GetFeatureInfo" from my WMS. The 
  URL looks fine, but I get this message:</DIV>
  <DIV><PRE><FONT class=Apple-style-span face=Helvetica><SPAN class=Apple-style-span style="WHITE-SPACE: normal"><SPAN class=Apple-tab-span style="WHITE-SPACE: pre">        </SPAN>"GetFeatureInfo results:

  Search returned no results."</SPAN></FONT></PRE></DIV>
  <DIV><BR></DIV>
  <DIV>The WMS works well:&nbsp;</DIV>
  <DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN><A 
  href="http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&amp;">http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&amp;</A></DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>service=wms&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>version=1.1.1&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>request=getmap&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>format=image/png&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>width=900&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>height=450&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>srs=EPSG:4326&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>bbox=-180,-90,180,90&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>layers=co2_gdp</DIV>
  <DIV><BR></DIV>
  <DIV>The GetFeatureInfo looks like this:&nbsp;</DIV>
  <DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN><A 
  href="http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&amp;">http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&amp;</A></DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>version=1.1.1&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>request=getfeatureinfo&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>width=900&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>height=450&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>srs=EPSG:4326&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>bbox=-180,-90,180,90&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>x=9.5&amp;y=50&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>query_layers=co2_gdp&amp;</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>layers=co2_gdp</DIV>
  <DIV><BR></DIV>
  <DIV>It should return the value for Germany. Here is the MAPserver code:</DIV>
  <DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LAYER</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;NAME co2_gdp &nbsp;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;METADATA&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;'wms_title' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  'Emissions of CO2 per GDP (PPP)'</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;'wms_timeextent' &nbsp;'2006'</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;'wms_extent' &nbsp; &nbsp; &nbsp; &nbsp; '-180 -90 180 
  90'</DIV>
  <DIV><SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"></SPAN>&nbsp;&nbsp;&nbsp;END # METADATA</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;PROJECTION</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;'init=epsg:4326'</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;END</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;STATUS OFF</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;CONNECTIONTYPE postgis</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;CONNECTION 'xxx'&nbsp;<SPAN class=Apple-tab-span 
  style="WHITE-SPACE: pre"> </SPAN></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;TYPE POLYGON</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;DATA "the_geom FROM ****"&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;TEMPLATE 'dummy'</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;DUMP TRUE</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;CLASSITEM 'value'</DIV>
  <DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN>&nbsp;&nbsp; 
  &nbsp;......</DIV>
  <DIV><BR></DIV>
  <DIV>Do I need to add something? Thanks for any adivce,</DIV>
  <DIV><BR></DIV>
  <DIV>Stefan</DIV></DIV><BR><BR></BLOCKQUOTE></BODY></HTML>