<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:large">Hello,</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:large">With your OUTPUTFORMAT configuration, if you want to use application/json in the URL of the WFS, verify that the wfs_getfeature_formatlist METADATA of your layer contains application/json.<br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:large">It is my configuration and it works fine. I hope it helps.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 28 mars 2024 à 09:00, Yves Jacolin via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have a mapserver WFS service running for some time without any issue. We upgraded to 7.6.5 and now a WFS request with OUTPUTFORMAT=application/json; subtype=geojson; charset=utf-8 failed with this message: msWFSGetFeature(): WFS server error. 'application/json' is not a permitted output format for layer 'XXXXX', review wfs_getfeature_formatlist setting.</div><div><br></div><div>The mapfile looks like:</div><div><br>    OUTPUTFORMAT<br>        NAME "geojson"<br>        DRIVER "OGR/GEOJSON"<br>        MIMETYPE "application/json; subtype=geojson; charset=utf-8"<br>        FORMATOPTION "STORAGE=stream"<br>        FORMATOPTION "FORM=SIMPLE"<br>    EN</div><div><span class="gmail_signature_prefix"><br></span></div><div><span class="gmail_signature_prefix">If I use outputformat=geojson it works. Is it normal? Do you think that Ican change the outputformat name to</span> "application/json; subtype=geojson; charset=utf-8"</div><div><br></div><div>Thanks,</div><div><br></div><div>Y.<br></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><a href="https://hihello.me/p/c7a536d1-5177-4817-8924-ebb067e58d4f" rel="noopener" style="display:inline-block" target="_blank"><img alt="This is Yves Jacolin's card. Their email is yves.jacolin@camptocamp.com. Their phone number is +33 6 18 75 42 21. Their phone number is +33 4 58 48 20 43. Their phone number is +41 21 619 10 43." src="https://cdn.hihello.me/cards/c7a536d1-5177-4817-8924-ebb067e58d4f/signature_text.png?generated=1675087890688" style="display: inline-block; min-height: 100px;" width="360"></a></div></div></div></div>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div>