[OpenLayers-Users] read data from gml file

mario1982 at libero.it mario1982 at libero.it
Tue Mar 23 06:19:16 EDT 2010


Hi,
I have tried to read data from gml file, but I'm not able to extract features attributes. 
Here is my code:

var in_options = {
	                'internalProjection': map.baseLayer.projection,
	                'externalProjection': map.baseLayer.projection,
	                extractStyles: true,
	                extractAttributes: true
	            };   
		 var gmlOptionsIn = OpenLayers.Util.extend(
	                OpenLayers.Util.extend({}, gmlOptions),
	                in_options
	            );
		var gml2 = new OpenLayers.Format.GML.v2(gmlOptionsIn);

var features = gml2.read(unescape(data));


Thank for your help.

Regards,
Mario





More information about the Users mailing list