geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
488 stars 261 forks source link

PostgreSQL provider: fix paging (#1594) #1628

Closed tomkralidis closed 5 months ago

tomkralidis commented 5 months ago

Overview

This PR updates the PostgreSQL provider to determine numberMatched prior to applying sort/limit/offset.

Related Issue / discussion

Additional information

Fixes #1594

Dependency policy (RFC2)

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

david-i-berry commented 5 months ago

This appears to fix https://github.com/geopython/pygeoapi/issues/1594.

Screenshot 1 - using master

image

Screenshot 2 - using https://github.com/tomkralidis/pygeoapi/tree/issue-1594

image

Note incorrect number of matches in first screenshot and lack of next link. In the second screenshot the number of matches is correct and includes the next link as expected.

tomkralidis commented 5 months ago

Added in 7c5768c504492de872bd0272c54eeb6f5323ddf2