<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Eric and list,<br><br>>So if I understand correctly you have WMS layers in the map, with<br>>corresponding
layer nodes in a tree. When a layer node is selected (w/<br>>a radio
button) WMS GFI requests can be sent (on click I guess). And<br>>you'd
like that results of GFI requests be added to a (pre-configured)<br>>store
somehow bound to the WMS layer. Right?<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>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). <br><br>>I guess you could have each layer keep a reference to the corresponding
store.<br>With adding my layer to stores configuration?<br><br>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?<br><br>Thanks again.<br><br>best regards<br>Sarah<br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;"></span></b><br></font><br>On Wednesday, June 16, 2010, Sarah Schuessler <<a ymailto="mailto:sarah_flip@yahoo.de" href="mailto:sarah_flip@yahoo.de">sarah_flip@yahoo.de</a>> wrote:<br>> Hi Eric an dlist,<br><br>Hi Sarah<br><br>><br>> thanks for your feedback.<br>> 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.<br>> My store is defined like:<br>> var attributeStore = new GeoExt.data.FeatureStore({<br>> fields: [{name: ......, type: 'string'}, {...}],<br>> proxy: new GeoExt.data.ProtocolProxy[{<br>> protocol: new OpenLayers.Protocol.WFS({<br>> url: "<a href="http://xxx/geoserver/wfs" target="_blank">http://xxx/geoserver/wfs</a>",<br>> featureNS: "xxx"<br>> ...<br>> schema: "<a href="http://xxx/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename"
target="_blank">http://xxx/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename</a>..."<br>> })<br>> }),<br>> autoLoad: true<br>> });<br>><br>> I want to know if the layer (node) has knowledge about the preconfigured store (so I can use somethink like node.layer.store).<br><br><br>So if I understand correctly you have WMS layers in the map, with<br>corresponding layer nodes in a tree. When a layer node is selected (w/<br>a radio button) WMS GFI requests can be sent (on click I guess). And<br>you'd like that results of GFI requests be added to a (pre-configured)<br>store somehow bound to the WMS layer. Right?<br><br>I guess you could have each layer keep a reference to the corresponding store.<br><br>Also, why do you have a ProtocolProxy (with a WFS protocol) in your<br>store? If you use WMS GFI
requests then you don't need that<br>ProtocolProxy.<br><br><br>> Or is this method more difficult than your approach with WFS? I don`t exactly know what you mean with:<br>> "If you use specific feature services then you can either define your<br>> schemas<br>> in the JavaScript code or implement specific<br>> DescribeFeatureType-like services."<br>> Can you please clarify?<br><br>Well I think you can forget about that, as I haden't understood you<br>when I wrote this. I thought you were looking at knowing where to<br>define your layer shemas, and I was telling you about the options you<br>had for that.<br><br>I hope I do understand you now.<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a ymailto="mailto:eric.lemoine@camptocamp.com" href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a
href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br></div></div>
</div><br></body></html>