[Users] dynamic layer choosing

Eric Lemoine eric.lemoine at camptocamp.com
Sat Apr 17 14:32:13 CEST 2010


On Thursday, April 15, 2010, Sarah Schuessler <sarah_flip at yahoo.de> wrote:
> Hi,
>
> thanks for your example.
>
> If I want to use a FeatureStore with a grid then I have to define my fields, columns at the beginning as far as I know. But I don`t know these because I choose my layer at my application. So I have to use WMSGetFeatureInfo with a popup?

each layer node could include the information required to create the
grid. So when queries are activated in the layer tree for a layer you
have all the information you need to create the grid.

> I`ve found this statement from Eric Lemoine at mapfish mailinglist:
>> using an
>  OpenLayers.Control.WMSGetFeatureInfo with a
>>
> GeoExt.data.FeatureStore. Features received in the GetFeatureInfo
>>
>  response are added to the store with store.loadData(features).
> which indicates that I can use a FeatureStore.

yes, a feature store is a store containing features, the features you
add to the store can come from any source, including responses to WMS
GFI requests.

> But this is only possible if I know my queryable layer?

Sorry I don't understand this question.

> I want to ask all features within current extent- so I need to use GetFeature with a filter?

At least using WFS GetFeature + a spatial filter is one option yes.

Cheers,

-- 
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