[mapserver-users] WMS GetFeatureInfo - is it possible to supportmultiple INFO_FORMATs?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue May 10 15:47:06 EDT 2011


Hi,

If you mean an effect like this

http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280

vs.

http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280

then yes, it is possible

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Jeff McKenna
Lähetetty: ti 10.5.2011 22:34
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] WMS GetFeatureInfo - is it possible to supportmultiple INFO_FORMATs?
 
On 11-05-10 4:11 PM, myOpenLayersUName wrote:
> Hello all,
>
> I've been trying to figure out how to do this for a while this afternoon and
> thought perhaps I'd better step back and find out if it's even possible
> before I keep struggling with it.
>
> Is it possible to support multiple INFO_FORMAT properties to a WMS
> GetFeatureInfo request? That is, is there a way to configure a MAP file that
> is acting as a WMS Server to return HTML or XML based on what is asked for
> in the request itself?

Not that I know of.  In fact you should probably check the WMS spec on 
the OGC site to see if that is allowed by the standard (my guess is no). 
  I do know that the MapServer support for GetFeatureInfo requests is 
documented in the "Configuring for GetFeatureInfo Requests" section of 
http://www.mapserver.org/ogc/wms_server.html

Of course, I've been wrong many times before, so someone can correct me 
if I am wrong here :)

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list