PHP MapScript getWMSFeatureInfoURL()

Armin Burger armin.burger at GMX.NET
Thu Jan 4 13:44:57 EST 2007


Hi all,

I have defined a WMS based layer in the map file:

CONNECTIONTYPE WMS
CONNECTION "http://myserver/cgi-bin/mapserv?map=owstest.map&"


When trying to use the PHP MapScript (MapServer 4.10) function 
'getWMSFeatureInfoURL()' for querying this layer, I get the error

msBuildWMSLayerURL(): WMS Connection String must contain the 
QUERY_LAYERS parameter to support GetFeatureInfo requests (with name in 
uppercase).

The function is only working correctly if I already put the 
"QUERY_LAYERS=layer1,layer2" to the CONNECTION string of the WMS layer 
definition in the map file. This is possible but looks a bit strange to 
me. Is that an intended behaviour or a bug?

Best regards

Armin
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the mapserver-users mailing list