deegree/deegree3

Add support for Json output format to WMS GetFeatureInfo

Closed this issue · 3 comments

tfr42 commented

deegree WMS GetFeatureInfo operation shall support for Json/GeoJson as output format.

lgoltz commented

Any ideas how to enable GeoJSON as output format? GeoJSON does not require a File, XSLTFile and Serializer [1]. Simple proposal:

<FeatureInfoFormats>
  <GetFeatureInfoFormat>
    <GeoJson>true</GeoJson>
    <Format>application/geo+json</Format>
  </GetFeatureInfoFormat>
</FeatureInfoFormats>

[1] https://schemas.deegree.org/services/wms/3.4.0/wms_configuration.xsd

Looks great!

A few suggestions:

  • perhaps better to use an empty element because it is only identifying the type of output and setting it to false doesn't seem to make sense.
  • would it be a good idea to be able to configure the output coordinate system?

I think it might also make sense to align the configuration with the WFS configuration, as i think deegree supports also outputting geomtries as well, with a vendor-specific parameter.

<attribute name="allowOtherCrsThanWGS84" type="boolean" default="false"/>