[Users] WFSCapabilitiesStore issue

Denis Rykov rykovd at gmail.com
Wed Aug 10 11:23:20 CEST 2011


Hi Alexandre!

I've solved my problem:

var store = new GeoExt.data.WFSCapabilitiesStore( {
  url: "
http://map.rostmuseum.ru/scripts/tinyows/tinyows.cgi?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
",
  layerOptions: function() {
    return {
      visibility: false,
      displayInLayerSwitcher: false,
      strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})]
    }
  }
});
store.load();

It looks like  WFSCapabilitiesStore doesn't work with WFS 1.1.0
version GetCapabilities
response or need to be configured with additional parameters.

On Mon, Jun 27, 2011 at 7:35 PM, Alexandre Dube <adube at mapgears.com> wrote:

> **
> 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
> ",
>   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 listUsers at geoext.orghttp://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110810/693b4494/attachment.htm 


More information about the Users mailing list