[mapserver-users] How is working TEMPLATE fooOnlyForWMSGetFeatureInfo ?

Yves Jacolin yves.jacolin at camptocamp.com
Thu Aug 11 05:14:48 PDT 2016


You should remove the line 64:

TEMPLATE 'fooOnlyForWMSGetFeatureInfo' is not useful in the WEB Object. Only 
the one in METADATA in the LAYER object.

See section 'At the map level' vs 'And for each LAYER' in 
http://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms

Y.


On Thursday, August 11, 2016 14:06:52 Jean-Christophe Bastin wrote:
> Hi,
> 
> Thank you for your answer.
> 
> Please find in attachment the MapFile.
> 
> To summarize, I have "WEB TEMPLATE 'fooOnlyForWMSGetFeatureInfo'" and
> "LAYER TEMPLATE fooOnlyForWMSGetFeatureInfo", as other samples I have found.
> 
> Regards,
> 
> JCB
> 
> Le 11/08/2016 à 13:57, Yves Jacolin a écrit :
> > Hello,
> > 
> > How is your mapfile? Could you share a part of it?
> > 
> > In WMS service, TEMPLATE should have a value, but not a specific value. So
> > you can write what you want.
> > 
> > So I guess there is a missing parameter in your mapfile.
> > 
> > Regards,
> > 
> > Y.
> > 
> > On Thursday, August 11, 2016 13:41:13 Jean-Christophe Bastin wrote:
> >> Hi all,
> >> 
> >> I don't find good explanations about the use of TEMPLATE
> >> fooOnlyForWMSGetFeatureInfo in a Mapfile.
> >> In fact, I have a queryable WMS, and when I send a GetFeatureInfo
> >> request, I get the following answer :
> >> 
> >> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> >> <!DOCTYPE ServiceExceptionReport SYSTEM
> >> "http://www.digitalearth.gov/wmt/xml/exception_1_0_1.dtd">
> >> <ServiceExceptionReport version="1.0.1">
> >> <ServiceException>
> >> msReturnPage(): Web application error. Malformed template name
> >> (fooOnlyForWMSGetFeatureInfo).
> >> </ServiceException>
> >> </ServiceExceptionReport>
> >> 
> >> What does that mean ?
> >> I did a research on "TEMPLATE" and "fooOnlyForWMSGetFeatureInfo", but I
> >> don't find how it is used.
> >> I only find Mapfile samples using it, but nothing about what and how it
> >> is used.
> >> 
> >> Someone can explain me how can I resolve this issue ?
> >> 
> >> Many thanks !
> >> 
> >> JCB

-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com


More information about the mapserver-users mailing list