We recently upgraded out ArcGIS Servers from version 10.6.1 to 10.9.1 (Linux) and since the upgrade, services won’t return a geojson response through WMS. When requesting an output of application/geojson on WMS version 1.3.0 we receive a Service Exception of "“InvalidFormat” : Parameter 'InfoFormat' contains unacceptable value.
eg.
https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&ver...
Error:
Parameter 'InfoFormat' contains unacceptable value.
When performing the same request and querying an earlier version of the WMS (version 1.1.1) on ArcGIS Server 10.9.1, data will be returned - but in xml (rather than the requested geojson). The assumption is that this is just a fail through rather then the parameter issue reported in version 1.3.0.
eg.
https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&ver...
We use external getcapabilities files for our services and "application/geojson" is listed as a acceptable format.
eg.
application/vnd.esri.wms_raw_xml
application/vnd.esri.wms_featureinfo_xml
application/vnd.ogc.wms_xml
application/geojson
text/xml
text/html
text/plain
I have published the same service on a 10.6.1 server (using the same external getcapabilities files) and when performing the same queries listed above, it performed correctly and provided a geojson output.
This issue has been logged with ESRI and I am currently awaiting a response - just thought i would put it out and see if anyone else has experienced this?
Cheers,
Kat.
Update - this relates to BUG-000144235
Further troubleshooting this morning. This appears to relate to a shift in syntax for requests in 10.9+. We were able to determine that modifying the request to the updated formatting of "application/geo+json" using the ASCII code for special characters i.e "+" equates to "%2B" would allow this request to be performed.
eg. info_format=application%2Fgeo%2Bjson
Updated (working) Request:
https://services.ga.gov.au/gis/services/OZTemp_Well_Data_Extract/MapServer/WMSServer?service=WMS&ver...