[OpenLayers-Users] WMSGetFeatureInfo Format

Alexandre Dube adube at mapgears.com
Wed Mar 4 08:13:04 EST 2009


We found out what was not working for us.  I've prepared a patch that 
solved the problem.

Could anyone confirm that there is a bug in the original version, please ?

  Kind regards,

Alexandre

Alexandre Dube wrote:
> Hi users,
>
>  I'm having a hard time using the WMSGetFeatureInfo format.
>
>  Instead of explaining, below's snippet (1).  Because I currently 
> can't have a response from my server since I have problems with HTTPS 
> and proxy, I load a xml (see attached) instead ( it's a msGMLOutput 
> XML from MapServer ).
>
>  I get an empty features array.  Any clue what I'm doing wrong ?
>
> (1) /*---------snippet---------*/
>    showResult: function(response){
>        var oFeatures;
>        var oFormat = new OpenLayers.Format.WMSGetFeatureInfo();
>        if(!response){
>            var xmlDoc=document.implementation.createDocument("","",null);
>            xmlDoc.async="false";
>            xmlDoc.load("response.xml");
>            oFeatures = oFormat.read_msGMLOutput(xmlDoc);
>        } else {
>            oFeatures = oFormat.read_msGMLOutput(response.responseXML ||
>                                                 response.responseText);
>        }
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: WMSGetFeatureInfo.patch
Type: text/x-diff
Size: 1852 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090304/c38af4d4/WMSGetFeatureInfo.bin


More information about the Users mailing list