[Geoserver-devel] [JIRA] (GEOS-10789) WMS: support "application/geo+json" MIME type in GetFeatureInfo calls

Chris Smith created an issue

GeoServer / ImprovementGEOS-10789

WMS: support “application/geo+json” MIME type in GetFeatureInfo calls

Issue Type:

ImprovementImprovement

Affects Versions:

2.22.0

Assignee:

Unassigned

Components:

WMS

Created:

13/Dec/22 2:21 AM

Environment:

<all>

Priority:

MediumMedium

Reporter:

Chris Smith

As a GIS client which might be connecting to many different servers (eg ArcGis, QGIS Server, Geoserver, etc), I need to be able to auto-discover the formats that can be used in GetFeatureInfo requests so that I can parse the response appropriately and show a list of features to the user.

Currently Geoserver’s WMS GetCapabilities announces the supported Formats for GetFeatureInfo as:

<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<Format>text/xml</Format>
<Format>application/vnd.ogc.gml/3.1.1</Format>
<Format>text/xml; subtype=gml/3.1.1</Format>
<Format>text/html</Format>
<Format>application/json</Format>

In the above “application/json” returns GeoJson however, because it only announces itself as “generic json”, the client cannot assume that its GeoJson.

Geoserver should also announce “application/geo+json” as a supported GetFeatureInfo Format so that the client can specifically target GeoJson.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100212-sha1:99773b8)

Atlassian logo