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 < [email protected]> 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 > [email protected]. 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 > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
