[Users] Gridpanel and dynamic Featurestore

Sarah Schuessler sarah_flip at yahoo.de
Thu Jun 17 12:15:42 CEST 2010


Hi Eric and list,

>So if I understand correctly you have WMS layers in the map, with
>corresponding layer nodes in a tree. When a layer node is selected (w/
>a radio 
button) WMS GFI requests can be sent (on click I guess). And
>you'd 
like that results of GFI requests be added to a (pre-configured)
>store somehow bound to the WMS layer. Right?


Yes I have WMS layers (correspond with the nodes). Till now a GFI request is sent when a user click on a feature. But I want to load all features of the selected layer into the store btw showing this store (without a user click but with changing the selected layer node). 

>I guess you could have each layer keep a reference to the corresponding 
store.
With adding my layer to stores configuration?

But I would perhaps think that loading all layer stores (having 8 WMS layers) is a bit time consuming for my app (one layer store takes about 3sec but I think my server configuration is not oiptimized yet). So defining schema like you said before is perhaps a better choice?

Thanks again.

best regards
Sarah


________________________________


On Wednesday, June 16, 2010, Sarah Schuessler <sarah_flip at yahoo.de> wrote:
> Hi Eric an dlist,

Hi Sarah

>
> thanks for your feedback.
> I´m already have a function getAttributes(node) which makes a Getfeatureinfo request (having WMS layers) depending on node.layer.params.LAYERS on users click.
> My store is defined like:
> var attributeStore = new GeoExt.data.FeatureStore({
>         fields: [{name: ......, type: 'string'}, {...}],
>         proxy: new GeoExt.data.ProtocolProxy[{
>             protocol: new OpenLayers.Protocol.WFS({
>                 url: "http://xxx/geoserver/wfs",
>          featureNS: "xxx"
>                 ...
>                 schema: "http://xxx/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename..."
>             })
>         }),
>         autoLoad: true
> });
>
> I want to know if the layer (node) has knowledge about the preconfigured store (so I can use somethink like node.layer.store).


So if I understand correctly you have WMS layers in the map, with
corresponding layer nodes in a tree. When a layer node is selected (w/
a radio button) WMS GFI requests can be sent (on click I guess). And
you'd like that results of GFI requests be added to a (pre-configured)
store somehow bound to the WMS layer. Right?

I guess you could have each layer keep a reference to the corresponding store.

Also, why do you have a ProtocolProxy (with a WFS protocol) in your
store? If you use WMS GFI requests then you don't need that
ProtocolProxy.


> Or is this method more difficult than your approach with WFS? I don`t exactly know what you mean with:
> "If you use specific feature services then you can either define your
> schemas
> in the JavaScript code or implement specific
> DescribeFeatureType-like services."
> Can you please clarify?

Well I think you can forget about that, as I haden't understood you
when I wrote this. I thought you were looking at knowing where to
define your layer shemas, and I was telling you about the options you
had for that.

I hope I do understand you now.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100617/e4fb1716/attachment.htm 


More information about the Users mailing list