QGIS – Editing WFS with Max Feature Limit in QGIS

geoserverqgiswfs

I'm serving a large layer (500 thousand polygons) using Geoserver WFS and what to be able to edit it using QGis. I've set a feature limit on the layer so I wont overload GeoServer with the request.

I can successully load and edit the WFS layer in QGIS but as soon as I reach the WFS feature limit, QGis will not bring any new polygons as I pan through the map canvas, even when I hit the refresh button in QGis. I was under the impression that QGIS would keep on updating the WFS layer whenever I moved around and that the feature limit in GeoServer would be a limit to a single request and not a total request. Am I getting things wrong?

Best Answer

QGIS does not automatically refresh the WFS layer unless feature caching is turned off. The selection box is so far right in the Add WFS layers that is tends to be hidden.

enter image description here

In a non-cached mode QGIS is sending a new WFS request after every pan or zoom by using the visible map area as a BBOX.

The refresh button did not work for you because in a cached mode WFS requests do not use BBOX. Resfresh brings you the same features again. However, if they were meanwhile edited in the database you would get fresh data.

MaxFeatures hit before BBOX is full Small BBOX needs less than 100000 features to be filled