[OpenLayers-Users] Read WFS capabilities file

Henry Rotzoll henry.rotzoll at dlr.de
Wed Feb 3 05:56:44 EST 2010


Hi there,

Does anybody know how to access the layers from a WFS capabilities file?

I have this code:
var XMLformat = new OpenLayers.Format.XML();
var xml = XMLformat.read(responseText); 
--> "responseText" ist the returned WFS capabilities file from the server
var CAPformat = new OpenLayers.Format.WFSCapabilities();
var cap = CAPformat.read(xml);

"cap" is an object, not null, but I can't access it like in the WMS
Capabilities case (e. g. cap.capability.layers[i]). JavaScript says it's
undefined.

Thanks in advance!

Best regards, 
Henry

-- 
View this message in context: http://n2.nabble.com/Read-WFS-capabilities-file-tp4506548p4506548.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list