Dear all,

I try to retrieve features using the WFS-NG module. We do this in batches of 10 to show it in a table-like grid, and we support paging. With the old module this worked: we implemented the "paging" ourselves when the capabilities showed it didn't support an offset. With the new module, I encounter some weird behavior: according to the querycapabilities it supports offset (link <https://github.com/geotools/geotools/blob/75b7dedf87aec993a92e924ccf1d9ac4053a9434/modules/library/data/src/main/java/org/geotools/data/store/ContentFeatureSource.java#L1213-L1220>). The first 10 (ranging from index 0 - 9) work fine, but the second 10 (ranging from index 10 - 19) yields no result.

The comments say that offset is supported through sorting (in the capabilities the sorting is supported through a SortedFeatureReader). But upon inspecting the retrieval of features through the reader, it doesn't use the SortedFeatureReader (the call to canSort() is true: link <https://github.com/geotools/geotools/blob/75b7dedf87aec993a92e924ccf1d9ac4053a9434/modules/library/data/src/main/java/org/geotools/data/store/ContentFeatureSource.java#L666-L671>).


The query to the featuresource is:
feature type: http://flamingo4.b3p.nl/geoserver/Test_omgeving:Test_omgeving:cbs_gemeente_2014
   filter: [Filter.INCLUDE]
   [properties: GM_CODE, GM_NAAM]
   [sort by: GM_CODE ASCENDING]

MaxFeatures is 10
StartIndex is 10



Any idea what I'm doing wrong? Or did I encounter a bug (if so, I'm happy to supply a patch if someone can point me in the right direction)?

--
Met vriendelijke groet,
Meine Toonen
B3Partners BV
Tel: 030 214 2083

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to