<!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> </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&y=50&<SPAN class=707330407-18052010> do not hit
Germany. Try with 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. To get
what you want 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> </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: </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&">http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&</A></DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>service=wms&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>version=1.1.1&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>request=getmap&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>format=image/png&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>width=900&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>height=450&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>srs=EPSG:4326&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>bbox=-180,-90,180,90&</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: </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&">http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&</A></DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>version=1.1.1&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>request=getfeatureinfo&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>width=900&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>height=450&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>srs=EPSG:4326&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>bbox=-180,-90,180,90&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>x=9.5&y=50&</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>query_layers=co2_gdp&</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> LAYER</DIV>
<DIV>
NAME co2_gdp </DIV>
<DIV>
METADATA </DIV>
<DIV>
'wms_title'
'Emissions of CO2 per GDP (PPP)'</DIV>
<DIV>
'wms_timeextent' '2006'</DIV>
<DIV>
'wms_extent' '-180 -90 180
90'</DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN> END # METADATA</DIV>
<DIV>
PROJECTION</DIV>
<DIV>
'init=epsg:4326'</DIV>
<DIV>
END</DIV>
<DIV>
STATUS OFF</DIV>
<DIV>
CONNECTIONTYPE postgis</DIV>
<DIV>
CONNECTION 'xxx' <SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"> </SPAN></DIV>
<DIV>
TYPE POLYGON</DIV>
<DIV>
DATA "the_geom FROM ****" </DIV>
<DIV>
TEMPLATE 'dummy'</DIV>
<DIV>
DUMP TRUE</DIV>
<DIV>
CLASSITEM 'value'</DIV>
<DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN>
......</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>