AW: [OpenLayers-Users] WMS GetFeatureInfo values as JSON

Arnd Wippermann arnd.wippermann at web.de
Thu Oct 20 18:25:50 EDT 2011


MapServer is capable to deliver query results as json.

If the requested WMS Server is configured for json output, you can get it.
But most likely it is not.

The GetCapabilities of The WMS Server lists the supported formats.

...
<GetFeatureInfo>
  <Format>text/plain</Format>
  <Format>text/html</Format>
  <Format>application/vnd.ogc.gml</Format>
  <DCPType>
    <HTTP>
      <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="[url]?"/></Get>
      <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="[url]?"/></Post>
    </HTTP>
  </DCPType>
</GetFeatureInfo>

Arnd

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Thomas
Puthusserry
Gesendet: Donnerstag, 20. Oktober 2011 22:57
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] WMS GetFeatureInfo values as JSON

Hi all,

Could some one answer this question:

Is it possible at all to get the WMS GetFeatureInfo responses as JSON
object?

Many thanks

Thomas


_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list