[OpenLayers-Dev] WFS PAGING
Andreas Hocevar
ahocevar at opengeo.org
Mon Nov 21 04:29:09 EST 2011
Hi,
WFS 1.1 does not have paging. Mapserver adds it as a vendor extension,
but GeoServer does not. So you need to a server component that
supports paging.
Andreas.
On Fri, Oct 7, 2011 at 12:11 PM, mano3688 <mano3688 at gmail.com> wrote:
> I startindex and count property for wfs paging ,but these two property not
> working here.so please repy me if all are nkow.
>
> thanls to all
>
> wfsProtocol=new OpenLayers.Protocol.WFS({
> url: 'http://localhost:8080/geoserver/wfs',
> featureType:layer,
> srsName: "EPSG:4326",
> version: '1.1.0',
> featureNS:"http://kcubeconsulting.com/geobrowser",
> featurePrefix: "VBL"
> });
>
> wfsProtocol.read({
>
> startIndex:20,
> count: 4,
> // maxFeatures: 15,
> callback: function(response) {
> feat = response.features;
>
>
>
> featureStore = new Ext.ux.data.PagingStore({
>
> reader: new GeoExt.data.FeatureReader({}, [
> {name: "state_name", type: "string"},
> {name: "country_id", type: "int"}
> ]),
> totalProperty : 35,
> data: feat
> });
> gridPanel = new Ext.grid.GridPanel({
> store: featureStore,
> columns: [
> {
> header: "State Name",
> width: 200,
> dataIndex: "state_name"
> },
> {
> header: "Country Id",
> width: 100,
> dataIndex: "country_id"
>
> },
>
> {
> header: "Zoom to feature",
>
> xtype:'actioncolumn',
> items: [{
> icon:'locked.png',
> tooltip:'please click on this icon.',
> handler: function(grid, rowIndex, colIndex) {
>
> alert("lock");
> }
>
> }]
> }
> ],
> stripeRows: true,
> // autoExpandColumn: 'company',
> height:350,
> width:600,
> title:'Array Grid',
>
> bbar: new Ext.PagingToolbar({
> store : featureStore,
> pageSize : 4,
> displayInfo : true
> }),
> viewConfig: {
> forceFit: true
> }
> });
> featureStore.loadData(feat);
> gridPanel.store.load({params:{start: 0, limit: 4}});
>
> var gridWindow = new Ext.Window({
> items: [gridPanel]
> }).show();
>
> }
>
> });
>
>
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-PAGING-tp6868790p6868790.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Dev
mailing list