[OpenLayers-Users] How to export vector features to grid using proxy and WFS protocol?

Shadin shadin__a at hotmail.com
Wed Sep 19 13:36:17 PDT 2012


I am trying to export vector features (current view) as a grid, something
like: http://workshops.opengeo.org/geoext/wfs/grid.html

so far layer features are not being retrieved.. I got an empty grid in the
window. would anyone take a look and let me know if I miss something ?

*gridPanel = new Ext.grid.GridPanel({ 
        title: "Feature Grid", 
        store: new GeoExt.data.FeatureStore({ 
        fields: [ 
            {name: "id", type: "int"}, 
            {name: "name", type: "string"} 
        ], 
            proxy: new GeoExt.data.proxy.Protocol({ 
            protocol: new OpenLayers.Protocol.WFS({ 
                url: "http://IP/geoserver/wfs", 
                featureType: "myLayer", 
                featureNS: "http://mapmap.org", 
                srsName: "EPSG:3857", 
                version: "1.1.0" 
            }) 
        }), 
                autoLoad: true 
                }), 
                sm: new GeoExt.selection.FeatureModel(), 
        width: 320, 
    columns: [ 
        {header: "id", dataIndex: "id"}, 
        {header: "name", dataIndex: "name"} 
    ] 
    }); 

        //window to display grid 
        var gridWindow = new Ext.Window({ 
              items: [ 
                     gridPanel 
                       ] 
            }).show();*



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-grid-using-proxy-and-WFS-protocol-tp5003069.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list