We're running GS 2.1.4, and trying to get JSON emitted as the output format
for WMS GetFeatureInfo.

The URL we're using is generated by OpenLayers and looks like:

http://tom1/geoserver/wms?LAYERS=CIS_LKI_SEGMENT_PUBLISHED_V&QUERY_LAYERS=CIS_LKI_SEGMENT_PUBLISHED_V&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=437798.846609%2C303877.971488%2C1954309.487576%2C1820388.612455&FEATURE_COUNT=3&HEIGHT=620&WIDTH=620&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fjson&SRS=EPSG%3A3005&X=250&Y=117&PROPERTYNAME=LKI_SEGMENT_EXT_ID%2COPPOSITE_LKI_SEGMENT_EXT_ID

Note the INFO_FORMAT=application%2Fjson, which appears correct.

However, this generates the error:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM "
http://tom1.vividsolutions.com:80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd";>
<ServiceExceptionReport version="1.1.1" >   <ServiceException
code="InvalidFormat" locator="info_format">
      Invalid format &apos;application/json&apos;, supported formats are
[text/plain, application/vnd.ogc.gml, text/html]
</ServiceException></ServiceExceptionReport>

We enabled ENABLE_JSONP in case there was some interaction there (although
there shouldn't be), but it didn't fix the problem.

Did 2.1.4 support JSON output for WMS GetFeatureInfo?  And if so, any
reason it would be disabled?
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to