[MapServer-users] 'application/json' is not a permitted output format for layer

mathias cunault mathias.cunault at inrap.fr
Thu Mar 28 01:40:18 PDT 2024


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 at 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.jacolin at 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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240328/a3aa08fe/attachment-0001.htm>


More information about the MapServer-users mailing list