Hi,
Then the last thing to do would be to make Simone to edit the previously mentioned blog http://www.geo-solutions.it/blog/wfs-for-the-masses-adding-support-for-paging-and-sorting-in-geoserver/. The blog is quite high on search results of “geoserver+startindex” and but the examples do not work in the same way with current Geoserver versions. Text should emphasize that for reading the first page of features user must explicitly use “startindex=0”. Editing the text would be better than to add a comment because all users do not read the comments.
Geoserver documentation mentions that startindex exists in http://docs.geoserver.org/stable/en/user/services/wfs/basics.html. However, there is nothing about it in WFS reference http://docs.geoserver.org/stable/en/user/services/wfs/reference.html. Startindex is included in the WMS manual http://docs.geoserver.org/stable/en/user/services/wms/vendor.html but text is not totally up to date. Startindex works nowadays with all stores and it would be worth telling also here that startindex=0 may give different results than request that does not have startindex at all.
-Jukka Rahkonen-
···
Andrea Aime wrote:
On Sun, May 4, 2014 at 1:55 PM, Rahkonen Jukka (Tike) <jukka.rahkonen@…486…> wrote:
Hi,
OK, with the startindex values I did not see that startindex is changing the sorting to alphabetical. Plain GetFeature with maxFeatures returns features in order states.1, states.2, states.3 but adding startindex is really changing the order into states.1, states.10, states.11.
I perhaps agree that current behaviour is acceptable bu it is not logical, and Geoserver users must know that they must load data in pages always with startindex because startindex=0 does not return the sama data than if parameter is not used at all.
It may be counter-intuitive, I agree, but forcing a sort is the only way to get stable paging across all data sources.
But of course, we initiate that only if the client shows an intent to page, without a startIndex we avoid it to get better performance.
Cheers
Andrea
–
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://twitter.com/geosolutions_it