[OpenLayers-Users] json respose to a wms get feature info

Imran Rajjad rajjad at gmail.com
Tue Jun 8 08:42:35 EDT 2010


firebug is showing the following request parameters

BBOX	72.925254,33.54194,73.199912,33.747933
FEATURE_COUNT	10
FORMAT	image/gif
HEIGHT	600
INFO_FORMAT	text/html
LAYERS	topp:networkcoverage
QUERY_LAYERS	topp:networkcoverage
REQUEST	GetFeatureInfo
SERVICE	WMS
SRS	EPSG:4326
STYLES	
VERSION	1.1.1
WIDTH	800
X	690
Y	295

On Tue, Jun 8, 2010 at 5:18 PM, Imran Rajjad <rajjad at gmail.com> wrote:
> Hi ,
>
> my WMSGetFeatureInfo control is not returning any json,, my code is as below
>
> basicControl = {
>                   click : new OpenLayers.Control.WMSGetFeatureInfo({
>                     url: 'http://10.0.80.41:7004/geoserver/wms',
>                        title: 'Identify features by clicking',
>                       layers: [network_wms],
>                        queryVisible: true,
>                        vendorParams: {
>                                    version: "1.1.1",
>                                    info_format: "text/plain",
>                                },
>                 format : new OpenLayers.Format.GeoJSON()})                                                                     };
>
>
>                basicControl.click.events.register("getfeatureinfo",
> this, showInfo);
>                map.addControl(basicControl.click);
>
>                function showInfo(evt) {
>                        alert(evt); //
>                  }
>
>
> when I check in FireBug. the request is sent but there is no
> responseTexT, what am i doing wrong here
>
> regards,
> Imran
>
>
> On Tue, Jun 8, 2010 at 1:20 PM, Imran Rajjad <rajjad at gmail.com> wrote:
>> Hi,
>>
>> I`m trying to create a box selection that selects features from a wms
>> overlay , I need the response to be in JSON and I also want to append
>> my cql filter to this request.
>>
>> Can anyone point me to the documentation closer to this task?
>>
>> regarsd,
>> Imran
>>
>> --
>> I.R
>>
>
>
>
> --
> I.R
>



-- 
I.R



More information about the Users mailing list