[OpenLayers-Users] Problem with WMSGetFeatureInfo erroring out
Daniel Morissette
dmorissette at mapgears.com
Fri Nov 20 17:16:40 EST 2009
Stephen Woodbridge wrote:
> OK, part of the problem is solved I added to the matadata:
>
> 'wms_feature_info_mime_type' "text/html"
>
> which fix the error, but now I get back what looks like image map of the
> features which is not what I was expecting.
>
Are you using an old 5.6 beta? This issue was fixed in 5.6-beta4:
http://trac.osgeo.org/mapserver/ticket/3024#comment:5
> I currently have TEMPLATE "dummy" in my layers, do I need to create a
> real template for each layer? I thought that this was supposed to return
> GML with something like COL_NAME = col_value for each of the columns.
>
Yes, to use wms_feature_info_mime_type you need real TEMPALTEs in your
queryable layers. This metadata is there exactly to specify what format
the query templates return.
Note that in 5.6, with the new templating mechanism introduced in
RFC-36, you can generate output formats such as GeoJSON, etc which may
better suit your needs than GML or straight text/html. See
http://mapserver.org/development/rfc/ms-rfc-36.html
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the Users
mailing list