[OpenLayers-Users] Users Digest, Vol 41, Issue 5
Gabriel Nolasco
nolasco_gabriel at yahoo.com.br
Wed Feb 3 12:59:54 EST 2010
Hi,
Use WFSCapabilities format instead [1]:
wfsParser = new OpenLayers.Format.WFSCapabilities();
wfsCapabilities = wfsParser.read(response.responseText);
wfsCapabilities.featureTypeList.featureTypes
[1]http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Format/WFSCapabilities-js.html
Best regards,
Gabriel Nolasco
Message: 6
Date: Wed, 3 Feb 2010 02:56:44 -0800 (PST)
From: Henry Rotzoll <henry.rotzoll at dlr.de>
Subject: [OpenLayers-Users] Read WFS capabilities file
To: users at openlayers.org
Message-ID: <1265194604077-4506548.post at n2.nabble.com>
Content-Type: text/plain; charset=us-ascii
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
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100203/1e1e73ff/attachment.html
More information about the Users
mailing list