Hi Ivan, the first feature class contains about 70 features, the second about 40. The maximum number of features displayed at the same time is about 40 (both classes together).
Greets Max Stephan > -----Ursprüngliche Nachricht----- > Von: Ivan Grcic [mailto:igr...@gmail.com] > Gesendet: Freitag, 16. Oktober 2009 20:42 > An: Max Stephan > Betreff: Re: [OpenLayers-Users] WFS performance issue > > On Fri, Oct 16, 2009 at 7:07 PM, Max Stephan <x....@gmx.net> wrote: > > > > Hello list, > > > > I´m using WFS with my GeoServer and OpenLayers to serve some polygons to > my > Hi, what is the approx. number of polygons youre dealing with? > > > WebGIS-Application (I´m not using WMS in this case which I know is better > > performancewise cause I need the ability to select and to hover the features > > with visual feedback which is much easier with Vector Features than with > > WMS). > > > > Actually I´m querying my GeoServer with code like this: > > wfsLayer = new OpenLayers.Layer.WFS(....); > > Using firebug I can see that each request takes up to 6 seconds (which is > > way too long in my opinion). In addition OpenLayers is rerequesting every > > time I pan the map, even when it´s only 1 pixel. > > > > I´ve read here and seen in the examples that it´s recommended to use BBOX > > and/or FIXED-Strategy in combination with an vectorlayer. > > I tried that like this: > > var wfsLayer = new OpenLayers.Layer.Vector("WFS", { > > strategies: [new OpenLayers.Strategy.BBOX()], > > projection: new OpenLayers.Projection("EPSG:31468"), > > protocol: new OpenLayers.Protocol.WFS({ > > url: "http://...", > > featureType: "...", > > srsName: 'EPSG:31468', > > extractAttributes: true > > }) > > }); > > In firebug I can see that there is a response containing all the features in > > the bbox with the right coordinates and attributes. But: Those features > > don´t show on the map at all. > > > > Any help is appreciated > > Thx in advance > > Max Stephan > > -- > > View this message in context: http://n2.nabble.com/WFS-performance-issue- > tp3836830p3836830.html > > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > > Users mailing list > > Users@openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > > -- > Ivan Grcic _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users