[Users] Gridpanel and dynamic Featurestore
Sarah Schuessler
sarah_flip at yahoo.de
Wed Jun 16 11:27:02 CEST 2010
Hi Eric an dlist,
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). Or is this method more difficult than your approach with WFS? I don`t exactly know what you mean with:
"If youuse specific feature services then you can either define your
schemas
in the JavaScript code or implement specific
DescribeFeatureType-likeservices."
Can you please clarify?
Thanks again for your help!
Best regards
Sarah
________________________________
On Tuesday, June 15, 2010, Sarah Schuessler <sarah_flip at yahoo.de> wrote:
> Hi list,
>
> I have a featurestore
> loaded in at gridpanel for a layer. Now I want to change the
> featurestore if I change the layer at layerswitcher with 'radiochanged'.
> I think I have to preconfigure the store and the grid because data vary
> and load all the grids and stores behind (or unvisible) the selected
> layer store. How to fetch those stores information depending on layerswitcher node?
> Any DON´Ts?
> Are there perhaps any examples or tips?
Hi.
If your layers are WFS layers you'd typically use DescribeFeatureType
requests to get information regarding the schema of the layers. If you
use specific feature services then you can either define your schemas
in the JavaScript code or implement specific DescribeFeatureType-like
services.
Hope this answers your questions,
--
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/20100616/3451e358/attachment.htm
More information about the Users
mailing list