[Users] WFSCapabilitiesStore issue
Alexandre Dube
adube at mapgears.com
Mon Jun 27 14:35:24 CEST 2011
Hi Denis,
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.
I also tried to remove all non-standards characters from the xml and
it didn't change anything.
Even though I don't have the solution, I thought I should let you
know what I tried to do.
Regards,
Alexandre
On 11-06-24 08:10 AM, Denis Rykov wrote:
> Try to perform the following commands:
>
> var store = new GeoExt.data.WFSCapabilitiesStore( {
> url:
> "http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&REQUEST=GetCapabilities
> <http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&REQUEST=GetCapabilities>",
> layerOptions: function() {
> return {
> visibility: false,
> displayInLayerSwitcher: false,
> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})]
> }
> }
> });
> store.load();
>
> And get an error: TypeError: data.capability is undefined.
>
> I use TinyOWS ans last svn version of geoExt. Example of
> GetCapabilities here: https://gist.github.com/1044649
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110627/464417bc/attachment.htm
More information about the Users
mailing list