Hi Alexandre!<div><br></div><div>I've solved my problem:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">var store = new GeoExt.data.<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(161, 210, 232); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">WFSCapabilitiesStore</span>( {<br>
url: "</span><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; "><a href="http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities">http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities</a></span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">",<br>
layerOptions: function() {<br> return {<br> visibility: false,<br> displayInLayerSwitcher: false,<br> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})]<br> }<br> }<br>});<br></span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">store.load();</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">It looks like <span class="Apple-style-span" style="color: rgb(34, 34, 34); font-size: 13px; background-color: rgb(161, 210, 232); ">WFSCapabilitiesStore </span><span class="Apple-style-span" style="font-size: 13px; background-color: rgb(255, 255, 255); ">doesn't work with WFS </span></font><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">1.1.0</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> version </span><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; ">GetCapabilities response</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> or need to be configured with additional parameters.</span></div>
<div><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 7:35 PM, Alexandre Dube <span dir="ltr"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div 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<div><div></div><div class="h5"><br>
<br>
<br>
On 11-06-24 08:10 AM, Denis Rykov wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">Try to perform the following commands:<br>
<br>
var store = new GeoExt.data.WFSCapabilitiesStore( {<br>
url: "<a href="http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&REQUEST=GetCapabilities" target="_blank">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 href="https://gist.github.com/1044649" target="_blank">https://gist.github.com/1044649</a><br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote><font color="#888888">
<br>
<br>
<pre cols="72">--
Alexandre Dubé
Mapgears
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
</font></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>