To complement what Steve wrote, have a look at the wms_getfeatureinfo_formatlist in http://mapserver.org/ogc/wms_server.html

Daniel


On 2016-11-10 1:50 PM, Lime, Steve D (MNIT) wrote:
This should be possible. Templates are not limited to HTML output, any text 
based format should be able to be created. You do this through output formats. 
Here's an example for plain text:

 OUTPUTFORMAT
    NAME 'plain-text'
    DRIVER 'TEMPLATE'
    MIMETYPE 'text/plain'
    FORMATOPTION "FILE=templates/plain.tmpl"
    FORMATOPTION 'ATTACHMENT=myfile.txt'
  END

The template file's extension is really irrelevant to what's being delivered 
back to the client - the mimetype sets that. I don't recall of the top of my 
head how you expose this type via WMS but I think that's pretty straight 
forward.

Steve

-----Original Message-----
From: mapserver-users [mailto:[email protected]] On 
Behalf Of Yves Jacolin
Sent: Thursday, November 10, 2016 4:16 AM
To: [email protected]
Subject: [mapserver-users] GetFeatureInfo layout in plain text

Hello,

I have to setup a text format for a WMS' GetFeatureInfo service. I would like
to know if it is possible to change the layout using a template.

My first test was not working so any feedback is welcome. The documentation
said that the user should read the templating chapter so I guess this is
possible.

Any confirmation?

Y.



--
Daniel Morissette
http://www.mapgears.com/
T: +1 418-696-5056 #201

http://evouala.com/ - Location Intelligence Made Easy
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to