Hi, If you use MapServer, then have a look here:
http://mapserver.org/output/template_output.html#outputformat-declarations http://mapserver.org/development/rfc/ms-rfc-36.html Arnd -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Thomas Puthusserry Gesendet: Sonntag, 23. Oktober 2011 22:41 An: [email protected] Cc: [email protected] Betreff: [OpenLayers-Users] WMS GetFeatureInfo values as JSON Thanks for the tip on my query on how to get WMS GetFeatureInfo as JSON object: Following earlier suggestions, I have checked my GetCapabilities configuration, and the WMS version 1.1.1 shows <GetFeatureInfo> <Format>text/plain</Format> <Format>application/vnd.ogc.gml</Format> <Format>text/html</Format> <DCPType> <HTTP> <Get> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://mydomain/geoserver/wms?SERVICE=WMS&"/> </Get> <Post> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://mydomain/geoserver/wms?SERVICE=WMS&"/> </Post> </HTTP> </DCPType> </GetFeatureInfo> Obviously, I cannot see any reference to JSON output here. Am I supposed to configure my WMS services for JSON output? If so, would someone explain to me how to configure it? Thomas On Thu, October 20, 2011 11:58 pm, Thomas Puthusserry wrote: > Thanks Arnd. > > I am using Geoserver 2.1.1. Is this available in Geoserver too? > > Where / how can I see the GetCapabilities configuration of WMS service > in geoserver? > > Many thanks indeed > > Thomas > On Thu, October 20, 2011 11:25 pm, Arnd Wippermann wrote: >> >> 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: [email protected] >> [mailto:[email protected]] Im Auftrag von >> Thomas Puthusserry >> Gesendet: Donnerstag, 20. Oktober 2011 22:57 >> An: [email protected] >> 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 [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
