AW: [OpenLayers-Users] WMS GetFeatureInfo values as JSON
Arnd Wippermann
arnd.wippermann at web.de
Mon Oct 24 12:17:51 EDT 2011
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: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Thomas
Puthusserry
Gesendet: Sonntag, 23. Oktober 2011 22:41
An: thomas at openmapsolutions.co.uk
Cc: openlayers-users at lists.osgeo.org
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: 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