[OpenLayers-Users] parse gml from WMS GetFeatureInfo

Christopher Schmidt crschmidt at metacarta.com
Thu May 22 16:59:20 EDT 2008


On Thu, May 22, 2008 at 10:54:38PM +0200, G. Allegri wrote:
> Hi list,
> I need to parse the response I get from a GetFeatureInfo. I thought I
> could do it with OpenLayers.Format.GML, but I get back nothing... I
> tried this way:
> 
> 		var gmlReader = new OpenLayers.Format.GML({extractAttributes: true});
> 		var _gml = gmlReader.read(response.responseXML);
> 		var my_attributes = _gml.attributes;


_gml is an array of OpenLayers.Feature.Vector objects.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list