[mapserver-users] GetFeatureInfo returns no results. Why?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue May 18 00:14:32 PDT 2010


Hi,
 
First, the image coordinates x=9.5&y=50& do not hit Germany.  Try with 475,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"
 
-Jukka Rahkonen-


________________________________

	Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Stefan Schwarzer
	Lähetetty: 18. toukokuuta 2010 9:57
	Vastaanottaja: mapserver-users at lists.osgeo.org
	Aihe: [mapserver-users] GetFeatureInfo returns no results. Why?
	
	
	Hi there,

	I am having problems getting a correct "GetFeatureInfo" from my WMS. The URL looks fine, but I get this message:
		"GetFeatureInfo results:
	
	  Search returned no results."

	The WMS works well: 
	http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&
	service=wms&
	version=1.1.1&
	request=getmap&
	format=image/png&
	width=900&
	height=450&
	srs=EPSG:4326&
	bbox=-180,-90,180,90&
	layers=co2_gdp

	The GetFeatureInfo looks like this: 
	http://metafunctions.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms_complete_last_year.map&
	version=1.1.1&
	request=getfeatureinfo&
	width=900&
	height=450&
	srs=EPSG:4326&
	bbox=-180,-90,180,90&
	x=9.5&y=50&
	query_layers=co2_gdp&
	layers=co2_gdp

	It should return the value for Germany. Here is the MAPserver code:
	               LAYER
	                    NAME co2_gdp  
	                    METADATA 
	                        'wms_title'             'Emissions of CO2 per GDP (PPP)'
	                        'wms_timeextent'  '2006'
	                        'wms_extent'         '-180 -90 180 90'
	   END # METADATA
	                    PROJECTION
	                        'init=epsg:4326'
	                    END
	                    STATUS OFF
	                    CONNECTIONTYPE postgis
	                    CONNECTION 'xxx'  
	                    TYPE POLYGON
	                    DATA "the_geom FROM ****" 
	                    TEMPLATE 'dummy'
	                    DUMP TRUE
	                    CLASSITEM 'value'
	    ......

	Do I need to add something? Thanks for any adivce,

	Stefan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100518/01073954/attachment.htm>


More information about the MapServer-users mailing list