Hi,<br>thx very much.<br>your suggestion is reallly useful.<br>this setting,<br><br>ows_include_items "all" <br>seem to be not available on documentation.<br><br>the documentation report only the<br>"gml_include_items" but it don't work for text/plain.<br>
<br>I you setting and all the attributes are appeared.<br>
<br>Also I'm see-ing the outputformat (a template driven I have setting) is ignored.<br>I don't know if this is correct.<br><br>Actually seem MapSever <br>will generate the output of a GetFeatureInfo using template driven only if not set the <br>
ows_include_items "all" <br>
<br>Andrea.<br><br><div class="gmail_quote">2012/7/11 Eichner, Andreas - SID-NLKM <span dir="ltr"><<a href="mailto:Andreas.Eichner@sid.sachsen.de" target="_blank">Andreas.Eichner@sid.sachsen.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The URL actually gives a feature  result (#135), but no attribute data.<br>
You need to set {wms,ows}_include_items metadata at layer level:<br>
 * wms/ows_include_items: comma delimited list or keyword 'all'<br>
<br>
HTH<br>
<br>
> -----Ursprüngliche Nachricht-----<br>
> Von: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Im Auftrag<br>
> von Andrea Peri<br>
> Gesendet: Mittwoch, 11. Juli 2012 12:45<br>
> An: Lime, Steve D (DNR)<br>
> Cc: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Betreff: Re: [mapserver-users] One template for every text type<br>
><br>
> Hi Steve,<br>
><br>
<div class="HOEnZb"><div class="h5">> thx very much for you rhint.<br>
> I ubnderstand and start to try it.<br>
><br>
> Now I found some strange.<br>
> It seem mapserver trunk don't work well when mime/type = text/plain.<br>
><br>
> I see infact the sample link in the documentation for text/plain<br>
> repeort this result<br>
> (no feature listed)<br>
> <a href="http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1" target="_blank">http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1</a>.<br>
> 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5<br>
> 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY<br>
LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280<br>
><br>
> Instead using the html link mapserver list the features.<br>
><br>
> <a href="http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1" target="_blank">http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1</a>.<br>
> 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5<br>
> 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY<br>
LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280<br>
><br>
><br>
><br>
> 2012/7/9 Lime, Steve D (DNR) <<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>><br>
><br>
><br>
>       The QUERYABLE parameter was never implemented so you<br>
> still must define a layer TEMPLATE to mark a layer as being<br>
> queryable. The template need not exist so typically I just do:<br>
><br>
><br>
><br>
>         TEMPLATE 'void'<br>
><br>
><br>
><br>
>       The link between layers and OUTPUTFORMAT templates are<br>
> in the templates themselves via the [resultset] tag.<br>
><br>
><br>
><br>
>       Steve<br>
><br>
><br>
><br>
>       From: Andrea Peri [mailto:<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>]<br>
>       Sent: Monday, July 09, 2012 5:15 AM<br>
>       To: Lime, Steve D (DNR)<br>
>       Cc: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>       Subject: Re: [mapserver-users] One template for every text type<br>
><br>
><br>
><br>
>       Hi Steve,<br>
>       thx for hint.<br>
><br>
>       I read the doc and also the RFC 36.<br>
>       I'm having also some doubt.<br>
><br>
>       I try to set this output format:<br>
><br>
>         OUTPUTFORMAT<br>
>           NAME "delimitazione_fogli_xml"<br>
>           MIMETYPE "text/xml"<br>
>           DRIVER "TEMPLATE"<br>
>           FORMATOPTION<br>
> "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl"<br>
>         END<br>
><br>
>         at WEB level I set this value:<br>
>       WEB<br>
>          METADATA<br>
>             "wms_feature_info_mime_type" "text/xml"<br>
>          END<br>
>       END<br>
><br>
>       And how explained from RFC I comment the template from<br>
> layer level and try to add the tag<br>
>       QUERYABLE TRUE<br>
>       (But this option seem to be not supported from<br>
> MapServer 6.2 trunk)<br>
><br>
>       If I remove the template tag from layer level I have this error:<br>
><br>
>       msWMSFeatureInfo(): WMS server error. Requested<br>
> layer(s) are not queryable.<br>
><br>
>       And if I try to add the QUERYABLE TRUE tag I have<br>
>       this error:<br>
><br>
>       >Unknown identifier. Parsing error near (QUERYABLE)<br>
><br>
>       So I need to maintain the template ad Layer level. This<br>
> force the layer to use the template from that tag instead of<br>
> the tag from FORMATOPTION.<br>
><br>
>       Also I don't understand how to link the specific format<br>
> option the a specific layer.<br>
><br>
>       Thx,<br>
><br>
>       Andrea.<br>
><br>
><br>
><br>
>       2012/7/6 Lime, Steve D (DNR) <<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>><br>
><br>
>       Hi Andrea: You can define multiple output formats that<br>
> use the template driver. They can each have different names<br>
> and mime-types. You can even use mime subtypes if you needed,<br>
> say, two XML formats. The MapServer CGI supports a parameter<br>
> called qformat that allows you to change the query template<br>
> to be used. I'm not sure how this works with WFS, probably<br>
> via mime-type.<br>
><br>
><br>
><br>
>       Steve<br>
><br>
><br>
><br>
>       From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of<br>
> Andrea Peri<br>
>       Sent: Tuesday, July 03, 2012 5:42 PM<br>
>       To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>       Subject: [mapserver-users] One template for every text type<br>
><br>
><br>
><br>
>       Hi,<br>
><br>
>       As report from documentation, MapServer will allow to<br>
> define a template to set the return from an identify.<br>
><br>
>       I need to define almost two distinct kind of returns:<br>
>       One for user (text/plain or text/html) and one for<br>
> business application (text/xml).<br>
><br>
>       So I like to define not only a template for return an<br>
> XML but also a template for return an html page.<br>
><br>
>       I don't know how to say to MapServer what template us<br>
> for text/html and what for text/xml.<br>
><br>
>       Is this possibile ?<br>
><br>
>       Thx.<br>
><br>
>       --<br>
>       -----------------<br>
>       Andrea Peri<br>
>       . . . . . . . . .<br>
>       qwerty àèìòù<br>
>       -----------------<br>
><br>
><br>
><br>
><br>
>       --<br>
>       -----------------<br>
>       Andrea Peri<br>
>       . . . . . . . . .<br>
>       qwerty àèìòù<br>
>       -----------------<br>
><br>
><br>
><br>
><br>
> --<br>
> -----------------<br>
> Andrea Peri<br>
> . . . . . . . . .<br>
> qwerty àèìòù<br>
> -----------------<br>
><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>