I will test and will tell you. I was pretty sure to check such metadata before :)
Thanks for your quick reply Mathias. Y. Le jeu. 28 mars 2024 à 09:40, mathias cunault <mathias.cuna...@inrap.fr> a écrit : > Hello, > 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. > It is my configuration and it works fine. I hope it helps. > > > Le jeu. 28 mars 2024 à 09:00, Yves Jacolin via MapServer-users < > mapserver-users@lists.osgeo.org> a écrit : > >> Hello, >> >> 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. >> >> The mapfile looks like: >> >> OUTPUTFORMAT >> NAME "geojson" >> DRIVER "OGR/GEOJSON" >> MIMETYPE "application/json; subtype=geojson; charset=utf-8" >> FORMATOPTION "STORAGE=stream" >> FORMATOPTION "FORM=SIMPLE" >> EN >> >> If I use outputformat=geojson it works. Is it normal? Do you think that >> Ican change the outputformat name to "application/json; subtype=geojson; >> charset=utf-8" >> >> Thanks, >> >> Y. >> -- >> [image: This is Yves Jacolin's card. Their email is >> yves.jaco...@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.] >> <https://hihello.me/p/c7a536d1-5177-4817-8924-ebb067e58d4f> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users@lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- [image: This is Yves Jacolin's card. Their email is yves.jaco...@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.] <https://hihello.me/p/c7a536d1-5177-4817-8924-ebb067e58d4f>
_______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users