gis - Pagination in Arcgis wfs request -


is possible send wfs request pagination? tried startindex it's not working. want fetch features within limit

eg: http://example.com/arcgis/services/<mapping service name>/mapserver/wfsserver?version=1.1.0&service=wfs&request=getfeature&typename=<type name>&startindex=10&maxfeature=10

or: how fetch objectid / featureid wfs request can send filter request?

well answer last question first request object featureid use like:

http://example.com/geoserver/wfs?   service=wfs&   version=2.0.0&   request=getfeature&   typename=namespace:featuretype&   featureid=feature 

to pagination use like:

http://example.com/geoserver/wfs?       service=wfs&       version=2.0.0&       request=getfeature&       typename=namespace:featuretype&       startindex=0&       maxfeatures=10 

some notes on however. have tested against geoserver , know in version 2.1.x of geoserver startindex has no affect on results. know work in version 2.3.x. if using particular version of geoserver suggest up. not sure supported in other applications serve out wfs. need check them have given above in accordance wfs spec.

one final thing may want add sorting when doing this. i.e.

http://example.com/geoserver/wfs?           service=wfs&           version=2.0.0&           request=getfeature&           typename=namespace:featuretype&           startindex=0&           maxfeatures=10&           sortby=namespace:field 

the reason without sorting when data updated data may change between requests meaning may not see results ect between pages. still possible sorting, particularly if not sorting on id or not using incremental style id field. sorting on id field ensure consitancy in paging.

as using arcgis of may not relevate you. pretty sure latest versions of arc gis support wfs spec startindex field.


Comments