Closed geoportallux closed 5 months ago
Here is the crucial line for this behavior: https://github.com/geopython/pygeoapi/blob/master/pygeoapi/api.py#1920
So it checks if there are enough numberMatched
to get a next page. In this example, numberMatched
is 1926.
The postgres provider seems to only count the values after the offset, so in total, this query gives 4926 matches.
However the api assumes that numberMatched
is the total number of matches.
So to fix this, we either need to change the behavior of the postgres provider or the API. Also, we might need to describe what numberMatched
really means (either total number of matches, or number of matches after offset).
Btw the previous version did contain the inverse bug, i.e. having a next
page where there shouldn't be one: https://github.com/geopython/pygeoapi/issues/1237
Given that numberMatched
means the total number of matches, this sounds like an update needed in the provider.
Description We have a regression with pagination on a layer using a PostGIS Point Layer, the "next" link disappears before having cycled through every record
Steps to Reproduce
This is a request on a v15 server:
It contains a "next" link to request the next set of 100 items
Here is the same request on a v 0.16.0 server
There is no "next" link in this case
If I put the source in QGIS, the v 0.16.0 does not show all the features, whereas it does in v 0.15.0
This is my config in both cases:
Expected behavior For both versions, all the layers should be shown in QGIS when panning through the map
Screenshots/Tracebacks
Environment
Additional context Add any other context about the problem here.