[MapServer-users] 'application/json' is not a permitted output format for layer
Yves Jacolin
yves.jacolin at camptocamp.com
Thu Mar 28 01:00:14 PDT 2024
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240328/ffe51057/attachment.htm>
More information about the MapServer-users
mailing list