<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Nów it works, thank you. <div class="">I must have done something wrong, when I was testing it before.<div class=""><br class=""></div><div class="">However, the „gml" as a possible output format is not mentioned in GetCapabilities response. The server returns „standard” list of supported formats</div><div class=""><div class=""><ows:Operation name="GetFeature"></div><div class=""><ows:DCP></div><div class=""><ows:HTTP></div><div class=""><ows:Get xlink:type="simple" xlink:href="<a href="http://localhost/cgi-bin/LC_WFS?language=pol" class="">http://localhost/cgi-bin/LC_WFS?language=pol</a>&"/></div><div class=""><ows:Post xlink:type="simple" xlink:href="<a href="http://localhost/cgi-bin/LC_WFS?language=pol" class="">http://localhost/cgi-bin/LC_WFS?language=pol</a>&"/></div><div class=""></ows:HTTP></div><div class=""></ows:DCP></div><div class=""><ows:Parameter name="outputFormat"></div><div class=""><ows:AllowedValues></div><div class=""><ows:Value>application/gml+xml; version=3.2</ows:Value></div><div class=""><ows:Value>text/xml; subtype=gml/3.2.1</ows:Value></div><div class=""><ows:Value>text/xml; subtype=gml/3.1.1</ows:Value></div><div class=""><ows:Value>text/xml; subtype=gml/2.1.2</ows:Value></div><div class=""></ows:AllowedValues></div><div class=""></ows:Parameter></div><div class=""></ows:Operation> </div><div class=""><br class=""></div><div class="">Secondly, is it possible to setup MapServer to return customized GML in GetFeature responses using default value (according to OGC WFS 2.0.0 specification) of OUTPUTFORMAT parameter „<span style="font-family: Georgia, "Times New Roman", Times, serif; font-size: 13.600000381469727px; background-color: rgb(218, 238, 243);" class="">application/gml+xml; version=3.2</span>”?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">Wiadomość napisana przez Seth G <<a href="mailto:sethg@geographika.co.uk" class="">sethg@geographika.co.uk</a>> w dniu 25.05.2021, o godz. 12:24:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">If you add &OUTPUTFORMAT=gml do you get a different result?<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div id="sig62266145" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="signature">--<br class=""></div><div class="signature">web:<a href="http://geographika.co.uk/" class="">http://geographika.co.uk</a><br class=""></div><div class="signature">twitter: @geographika<br class=""></div></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On Tue, May 25, 2021, at 11:20 AM, Marcin Grudzień wrote:<br class=""></div><blockquote type="cite" id="qt" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hi Seth,<br class=""></div><div class=""><br class=""></div><div class="">It is very basic WFS GetFeature request <a href="http://localhost/cgi-bin/mapserv?map=/srv/lc/LC_wfs.map&SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&COUNT=10&TYPENAMES=LC.LandCoverUnit" class="">http://localhost/cgi-bin/mapserv?map=/srv/lc/LC_wfs.map&SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&COUNT=10&TYPENAMES=LC.LandCoverUnit</a><br class=""></div></div></div></div><div class=""><br class=""></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Tue, 25 May 2021 at 11:03, <<a href="mailto:mapserver-users-request@lists.osgeo.org" class="">mapserver-users-request@lists.osgeo.org</a>> wrote:<br class=""></div><blockquote class="qt-gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class="">Send mapserver-users mailing list submissions to<br class=""></div><div class="">       <span class="Apple-converted-space"> </span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" class="">mapserver-users@lists.osgeo.org</a><br class=""></div><div class=""><br class=""></div><div class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""></div><div class="">       <span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br class=""></div><div class="">or, via email, send a message with subject or body 'help' to<br class=""></div><div class="">       <span class="Apple-converted-space"> </span><a href="mailto:mapserver-users-request@lists.osgeo.org" target="_blank" class="">mapserver-users-request@lists.osgeo.org</a><br class=""></div><div class=""><br class=""></div><div class="">You can reach the person managing the list at<br class=""></div><div class="">       <span class="Apple-converted-space"> </span><a href="mailto:mapserver-users-owner@lists.osgeo.org" target="_blank" class="">mapserver-users-owner@lists.osgeo.org</a><br class=""></div><div class=""><br class=""></div><div class="">When replying, please edit your Subject line so it is more specific<br class=""></div><div class="">than "Re: Contents of mapserver-users digest..."<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Today's Topics:<br class=""></div><div class=""><br class=""></div><div class="">   1. Re:  Setting up a template for custom WFS GetFeature response<br class=""></div><div class="">      (Seth G)<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">----------------------------------------------------------------------<br class=""></div><div class=""><br class=""></div><div class="">Message: 1<br class=""></div><div class="">Date: Tue, 25 May 2021 11:02:52 +0200<br class=""></div><div class="">From: "Seth G" <<a href="mailto:sethg@geographika.co.uk" target="_blank" class="">sethg@geographika.co.uk</a>><br class=""></div><div class="">To:<span class="Apple-converted-space"> </span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" class="">mapserver-users@lists.osgeo.org</a><br class=""></div><div class="">Subject: Re: [mapserver-users]  Setting up a template for custom WFS<br class=""></div><div class="">        GetFeature response<br class=""></div><div class="">Message-ID: <<a href="mailto:dd600931-5920-49ea-b814-84506177a692@www.fastmail.com" target="_blank" class="">dd600931-5920-49ea-b814-84506177a692@www.fastmail.com</a>><br class=""></div><div class="">Content-Type: text/plain; charset="utf-8"<br class=""></div><div class=""><br class=""></div><div class="">Hi Marcin,<br class=""></div><div class=""><br class=""></div><div class="">What does your GetFeature request look like?<br class=""></div><div class=""><br class=""></div><div class="">Seth<br class=""></div><div class=""><br class=""></div><div class="">--<br class=""></div><div class="">web:<a href="http://geographika.co.uk/" rel="noreferrer" target="_blank" class="">http://geographika.co.uk</a><br class=""></div><div class="">twitter: @geographika<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">On Tue, May 25, 2021, at 10:55 AM, Marcin Grudzie? wrote:<br class=""></div><div class="">> Hello,<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> I have been trying to set up INSPIRE WFS service publishing data in GML that validates against INSPIRE GML application schemas. To achieve that I use template-driven output, basically following<span class="Apple-converted-space"> </span><a href="https://mapserver.org/fr/output/template_output.html" rel="noreferrer" target="_blank" class="">https://mapserver.org/fr/output/template_output.html</a>. However, I am not able to force MapServer to use my GetFeature response template. GetFeature response always returns ?standard? MapServer GML, which of course, is not INSPIRE compliant.<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> Below you can find my configuration details.<br class=""></div><div class=""><br class=""></div><div class="">> I am using 7.6.3 version build on Ubuntu 20.04 LTR<br class=""></div><div class=""><br class=""></div><div class="">> mapserv -v returns<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> MapServer version 7.6.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> My mapfile looks like this<br class=""></div><div class=""><br class=""></div><div class="">> MAP<br class=""></div><div class=""><br class=""></div><div class="">> NAME "LandCover"<br class=""></div><div class=""><br class=""></div><div class="">> STATUS ON<br class=""></div><div class=""><br class=""></div><div class="">> EXTENT 160828.34326572 98928.8977745594 876029.97009323 796521.669409553<br class=""></div><div class=""><br class=""></div><div class="">> UNITS meters<br class=""></div><div class=""><br class=""></div><div class="">> SIZE 100 100<br class=""></div><div class=""><br class=""></div><div class="">> MAXSIZE 4000<br class=""></div><div class=""><br class=""></div><div class="">> FONTSET "/srv/Fonts/Fontset.txt"<br class=""></div><div class=""><br class=""></div><div class="">> CONFIG "MS_ERRORFILE" "/srv/lc/error_lc_wfs.txt"<br class=""></div><div class=""><br class=""></div><div class="">> DEBUG 5<br class=""></div><div class=""><br class=""></div><div class="">><span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> PROJECTION<br class=""></div><div class=""><br class=""></div><div class="">> "init=epsg:2180"<br class=""></div><div class=""><br class=""></div><div class="">><span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> END<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> OUTPUTFORMAT<br class=""></div><div class=""><br class=""></div><div class="">>             NAME "gml"<br class=""></div><div class=""><br class=""></div><div class="">>             DRIVER "TEMPLATE"<br class=""></div><div class=""><br class=""></div><div class="">>             #MIMETYPE "text/xml; subtype=gml/3.2.1"<br class=""></div><div class=""><br class=""></div><div class="">>             FORMATOPTION "FILE=LC_template.gml"<br class=""></div><div class=""><br class=""></div><div class="">> END<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> WEB<br class=""></div><div class=""><br class=""></div><div class="">> METADATA<br class=""></div><div class=""><br class=""></div><div class="">> "ows_inspire_capabilities" "url"<br class=""></div><div class=""><br class=""></div><div class="">> "ows_languages" "pol,eng"       <br class=""></div><div class=""><br class=""></div><div class="">> "ows_title" "Title PL"<br class=""></div><div class=""><br class=""></div><div class="">> "ows_title.eng" "WFS service with INSPIRE Land Cover"<br class=""></div><div class=""><br class=""></div><div class="">> "ows_abstract" "Abstract PL"<br class=""></div><div class=""><br class=""></div><div class="">> "ows_abstract.eng" "WMS service publishes harmonised INSPIRE Land Cover data set derrived from BDOT10k as-is data set "<br class=""></div><div class=""><br class=""></div><div class="">> "ows_fees" "Brak op?at"<br class=""></div><div class=""><br class=""></div><div class="">> "ows_fees.eng" "No fee applies"<br class=""></div><div class=""><br class=""></div><div class="">>  WFS_ONLINERESOURCE "<a href="http://localhost/cgi-bin/LC_WFS" rel="noreferrer" target="_blank" class="">http://localhost/cgi-bin/LC_WFS</a>"<br class=""></div><div class=""><br class=""></div><div class="">> "wfs_getfeature_formatlist" "gml"<br class=""></div><div class=""><br class=""></div><div class="">> "wfs_inspire_metadataurl_href"    "someurl"<br class=""></div><div class=""><br class=""></div><div class="">> "wfs_inspire_metadataurl_format"  "application/vnd.ogc.csw.GetRecordByIdResponse_xml"<br class=""></div><div class=""><br class=""></div><div class="">>             <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> "ows_inspire_dsid_code" "LC "<br class=""></div><div class=""><br class=""></div><div class="">> "ows_inspire_dsid_ns" "LC.3.2"<br class=""></div><div class=""><br class=""></div><div class="">>             <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> "wfs_enable_request"           "*"<br class=""></div><div class=""><br class=""></div><div class="">> "wfs_srs" "EPSG:2180 EPSG:4326 EPSG:3857 EPSG:4528"<br class=""></div><div class=""><br class=""></div><div class="">> END<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> END #WEB<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> LAYER<br class=""></div><div class=""><br class=""></div><div class="">>             NAME "LC.LandCoverUnit"<br class=""></div><div class=""><br class=""></div><div class="">>             STATUS ON<br class=""></div><div class=""><br class=""></div><div class="">>             CONNECTIONTYPE POSTGIS<br class=""></div><div class=""><br class=""></div><div class="">>             CONNECTION "host=localhost dbname=postgis_db user=user password=password port=5432"<br class=""></div><div class=""><br class=""></div><div class="">>             DATA "geom from bdot.landcoversurface using unique objectid using srid=2180"<br class=""></div><div class=""><br class=""></div><div class="">>                         <br class=""></div><div class=""><br class=""></div><div class="">>             PROJECTION<br class=""></div><div class=""><br class=""></div><div class="">>                         "init=epsg:2180"<br class=""></div><div class=""><br class=""></div><div class="">>             END<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">>             TYPE POLYGON<br class=""></div><div class=""><br class=""></div><div class="">>             PROCESSING "CLOSE_CONNECTION=DEFER"<br class=""></div><div class=""><br class=""></div><div class="">>             TEMPLATE "LC_template.gml"<br class=""></div><div class=""><br class=""></div><div class="">>             METADATA<br class=""></div><div class=""><br class=""></div><div class="">>                         "ows_title.pol" "LC.LandCoverUnit"<br class=""></div><div class=""><br class=""></div><div class="">>                         "ows_title.eng" "LC.LandCoverUnit"<br class=""></div><div class=""><br class=""></div><div class="">>                         WFS_EXTENT "160828.34326572 98928.8977745594 876029.97009323 796521.669409553"<br class=""></div><div class=""><br class=""></div><div class="">>                         "gml_include_items" "all"<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">>                         "gml_featureid"     "objectid"<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_getfeature_formatlist" "gml"<br class=""></div><div class=""><br class=""></div><div class="">>                          "wfs_enable_request" "*"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_connectiontimeout" "120"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_maxfeatures"       "10000"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_srs" "EPSG:2180 EPSG:4326 EPSG:3857 EPSG:4528"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_metadataurl_href" "someurl"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_inspire_metadataurl_format" "application/xml"<br class=""></div><div class=""><br class=""></div><div class="">>                         "wfs_metadataurl_type" "TC211"<br class=""></div><div class=""><br class=""></div><div class="">>               END #METADATA<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> END #LAYER<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> END #MAP<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> I tried different OUTPUTFORMAT configurations with different NAME, MIMETYPE parameter values. And nothing has worked.<br class=""></div><div class=""><br class=""></div><div class="">> On the same machine, I successfully published WMS service returning HTML GetFeatureInfo response customized utilizing the very same template-driven output concept.<br class=""></div><div class=""><br class=""></div><div class="">> I suspect that I may be missing something in the configuration file. I would be grateful for any suggestions.<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> Best regards,<br class=""></div><div class=""><br class=""></div><div class="">> Marcin<br class=""></div><div class=""><br class=""></div><div class="">> <span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">> _______________________________________________<br class=""></div><div class="">> mapserver-users mailing list<br class=""></div><div class="">><span class="Apple-converted-space"> </span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" class="">mapserver-users@lists.osgeo.org</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:mapserver-users%2540lists.osgeo.org" target="_blank" class="">mapserver-users%40lists.osgeo.org</a>><br class=""></div><div class="">><span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br class=""></div><div class="">><span class="Apple-converted-space"> </span><br class=""></div><div class="">-------------- next part --------------<br class=""></div><div class="">An HTML attachment was scrubbed...<br class=""></div><div class="">URL: <<a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210525/41fcc396/attachment.html" rel="noreferrer" target="_blank" class="">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210525/41fcc396/attachment.html</a>><br class=""></div><div class=""><br class=""></div><div class="">------------------------------<br class=""></div><div class=""><br class=""></div><div class="">Subject: Digest Footer<br class=""></div><div class=""><br class=""></div><div class="">_______________________________________________<br class=""></div><div class="">mapserver-users mailing list<br class=""></div><div class=""><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" class="">mapserver-users@lists.osgeo.org</a><br class=""></div><div class=""><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">------------------------------<br class=""></div><div class=""><br class=""></div><div class="">End of mapserver-users Digest, Vol 160, Issue 28<br class=""></div><div class="">************************************************<br class=""></div></blockquote></div><div class="">_______________________________________________<br class=""></div><div class="">mapserver-users mailing list<br class=""></div><div class=""><a href="mailto:mapserver-users%40lists.osgeo.org" class="">mapserver-users@lists.osgeo.org</a><br class=""></div><div class=""><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" class="">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></blockquote></div></blockquote></div><br class=""></div></div></div></div></div></body></html>