[OpenLayers-Users] WMSGetFeatureInfo Format

Andreas Hocevar ahocevar at opengeo.org
Mon Mar 16 07:58:05 EDT 2009


Alexandre,

it seems we don't have a CLA from you or Mapgears yet. Is this
correct? If so, please follow the instructions on
http://trac.openlayers.org/wiki/HowToContribute

Thanks!
Andreas.

On Wed, Mar 4, 2009 at 2:13 PM, Alexandre Dube <adube at mapgears.com> wrote:
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list