Hi all,
The idea of paging has recently popped up on the list. Also for the geo search stuff it is necessary to be able to page through features when requesting kml. So I thought I would start a thread on paging :).
The api for a client paging through seems pretty straight forward. We already have "maxFeatures" parameter. Adding "startIndex" would pretty much do it. How the server processes it is the interesting part.
I guess the whole idea of paging relies on the ability to assume ordering in the underlying dataset or index you are you using to access features. Jody tried to pull this off before with FeatureList... but not sure that was such a successful endeavor.
It seems a less invasive approach might be to pass some query hints to the underlying datastore. I am interested in hearing peoples thoughts on this one.
As a little experiment for KML, i create a feature source wrapper, called PagingFeatureSource. Hooking up the startIndex and maxFeatures parameters was straight forward, and it worked... for KML. It does not work for rendered output since the render does not actually use the featureSource provided by map context, it grabs the query and the datastore and grabs its own. Or at least the shapefile renderer does, not sure if the steaming renderer behaves the same way. Which is another plus towards query hints.
Anyways.. rant away :).
-Justin
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com