Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Table pagination #20

Open
umbe1987 opened this issue Aug 1, 2019 · 1 comment
Open

Attribute Table pagination #20

umbe1987 opened this issue Aug 1, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@umbe1987
Copy link
Owner

umbe1987 commented Aug 1, 2019

As requesting all the records from a WFS which has many rows slows down the rendering of the table, now there's an impse limit to a maximum of feature requests which is 200 (maybe too few).
I can implement a pagination like I do for the Info panel, by paginating the rows with the parameters STARTINDEX combined with MAXFEATURES, as described in https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/services.html#getfeature.

e.g. 200 records starting from the 200th

https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?map=/home/ubuntu/qgis/projects/glaciers_WMS/demo_glaciers.qgs&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&MAXFEATURES=200&STARTINDEX=200&TYPENAME=glaciers_area&

(without geometry, see also #19)
https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?map=/home/ubuntu/qgis/projects/glaciers_WMS/demo_glaciers.qgs&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&MAXFEATURES=200&STARTINDEX=200&TYPENAME=glaciers_area&GEOMETRYNAME=none&

@umbe1987 umbe1987 added the enhancement New feature or request label Aug 1, 2019
@umbe1987
Copy link
Owner Author

umbe1987 commented Aug 1, 2019

To retrieve the total number of features in a WFS, one can use the standard WFS parameter RESULTTYPE=hits&.

Example:
https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?map=/home/umberto/qgis/projects/Demo_sci_WMS/demo_sci.qgs&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=piste_sci&RESULTTYPE=hits&

immagine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant