Hello!

I have a WFS layer in GML:

    var medicago_site_co = new OpenLayers.Layer.Vector(
            "Site de collecte",{
                strategies : [ new OpenLayers.Strategy.BBOX(),
                               new OpenLayers.Strategy.Fixed()
                ],
                protocol: new OpenLayers.Protocol.HTTP(
                        {url : "/geoserver/wfs?",
                            params: {format:"WFS",
                            service: "WFS",
                            version: "1.0.0",
                            request: "GetFeature",
                            typename: "MEDICAGO_SITE_COLLECTE",
                            SRS: "EPSG:4326"},
                            format : new OpenLayers.Format.GML()
                        }),

                        geometryName : "GEOMETRY",
                        visibility: false,
                        styleMap: style1

            });

I load the data layer in a GeoExt.data.featureStore to display this in a 
gridPanel:

    var st_med_co =  new GeoExt.data.FeatureStore({
        layer: medicago_site_co,
        idIndex: 'IDENTIFIANT_SITE',
        fields:[{name: 'IDENTIFIANT_SITE', type: 'string'},
                {name: 'NOM_SITE', type: 'string'},
                {name: 'TYPE_SITE'},
                {name: 'LONGITUDE'},
                {name: 'LATITUDE'},
                {name: 'ALTITUDE'},
                {name: 'LOCALISATION', type: 'string'},
                {name: 'NOMBRE_ACCESSIONS', type: 'string'},
                {name: 'PRECISION_DONNEES', type: 'string'},
                {name: 'AVG_SPIRALE_HORAIRE', type: 'string'},
                {name: 'AVG_SPIRALE_ANTI_HORAIRE', type: 'string'}
                ],
              //  autoLoad: true
    });

Whith a Ajax request I load supplement layer data and I get a result in XML.
I put new column in my gridPanel, but I have a problem to add my XML 
result to my feature store.

Have you an idea to add data to the feature store?

Thank you very much!

François.
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to