[Users] Gridpanel and dynamic Featurestore

Eric Lemoine eric.lemoine at camptocamp.com
Thu Jun 17 08:49:21 CEST 2010


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


More information about the Users mailing list