[OpenLayers-Users] WFS performance issue
Max Stephan
x.zam at gmx.net
Fri Oct 16 13:07:14 EDT 2009
Hello list,
I´m using WFS with my GeoServer and OpenLayers to serve some polygons to my
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.
More information about the Users
mailing list