<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Denis,<br>
<br>
I tried read your WFS capabilities xml using
OpenLayers.Format.WFSCapabilities and it worked. All feature types
were read correctly. I also tried your piece of code with an other
WFS capabilities xml (instead of your own) from TinyOWS and it also
worked. So, my guess is that the issue may come from your
capabilities causing an issue in the WFSCapabilitiesReader of
GeoExt. I don't get your js error, but the store doesn't have any
records after load.<br>
<br>
I also tried to remove all non-standards characters from the xml
and it didn't change anything.<br>
<br>
Even though I don't have the solution, I thought I should let you
know what I tried to do.<br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 11-06-24 08:10 AM, Denis Rykov wrote:
<blockquote
cite="mid:BANLkTin8iiqLkRv43qKhK_3s=1TMapkV5A@mail.gmail.com"
type="cite">Try to perform the following commands:<br>
<br>
var store = new GeoExt.data.WFSCapabilitiesStore( {<br>
url: "<a moz-do-not-send="true"
href="http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&REQUEST=GetCapabilities">http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&REQUEST=GetCapabilities</a>",<br>
layerOptions: function() {<br>
return {<br>
visibility: false,<br>
displayInLayerSwitcher: false,<br>
strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})]<br>
}<br>
}<br>
});<br>
store.load();<br>
<br>
And get an error: TypeError: data.capability is undefined.<br>
<br>
I use TinyOWS ans last svn version of geoExt. Example of
GetCapabilities here: <a moz-do-not-send="true"
href="https://gist.github.com/1044649">https://gist.github.com/1044649</a><br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>