[Users] FeatureStore+GridPanel with DescribeFeatureType
Alexandre Dube
adube at mapgears.com
Thu Mar 24 13:04:42 CET 2011
On 11-03-23 05:13 PM, Eric Lemoine wrote:
> On Wednesday, March 23, 2011, Alexandre Dube<adube at mapgears.com> wrote:
>> I would like to know if it would be possible to create a GridPanel
>> plugged to a FeatureStore that are binded to an existing Vector layer
>> with its own WFS protocol (something like pretty much like
>> http://api.geoext.org/1.0/examples/feature-grid.html, but instead of
>> having a layer without a protocol and use the layer in the FeatureStore,
>> do the opposite... I mean use a Vector layer with its own WFS protocol
>> and plug it to the FeatureStore...)
> Yes, any vector layer can be bound to a FeatureStore. Once bound if
> features are added to the layer (for example through its strategy and
> protocol) corresponding feature records are created and added to the
> store.
Rodger that.
>> and using a WFS DescribeFeatureType
>> request to get the list of fields and columns.
> Yep, you should be able to write application code that creates a
> FeatureStore and a ColumnModel from a DFT response or an
> AttributeStore.
>
> Also we could have a GridPanel in GeoExt, that, when configured with
> an AttributeStore, will itself create its FeatureStore and
> ColumnModel.
Okay, then I'll try to do it that way as much as possible within a ux
component that could easily be renamed as a GeoExt one.
> Have you looked at OpenGeo's gxp repository? Maybe they have something
> like that already. And if so it'd be great to steal it from them and
> add it into GeoExt :-)
I hadn't. While browsing it, I found :
https://github.com/opengeo/gxp/blob/master/src/script/widgets/grid/FeatureGrid.js
and I think it's exactly what I've been looking for.
Thanks a million Eric. You're always very helpful,
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list