Hi,
We have developed a WPS process which takes some pagination parameters
(startIndex, maxFeatures) in order to return a subset of the whole
FeatureCollection.
In order to properly interact with client code, we'd like to include a
totalCount property in the response, indicating the size of the total
feature collection. Which is the best way to encode such parameter?
I have been thinking on the following approaches, but the main problem is
that Geoserver WPS documentation is a bit vague regarding supported
response types and how they are encoded:
- To return a different return type (such as a JSON object or similar). We
won't actually have any geometry in the response of this WPS process, just
an array of records, so the whole thing could be encoded on a JSON object
(included the totalCount field).
- To create an interface extending SimpleFeatureCollection (let's call it
PartialFeatureCollection) including a totalCount property (and probably
some other useful properties). Then we need an implementation of that
interface that acts as a wrapper of a SimpleFeatureCollection to wrap our
current response. Finally, we would probably need a custom PPIO to properly
encode this specialized response.
- To investigate if we can add some property to the FeatureCollection,
assuming this property is then properly encoded in the response (as this is
not a property of any of the features but of the whole collection).
Do you have any suggestion?
Thanks in advance,
César
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
César Martínez Izquierdo
GIS developer
- - - - - - - - - - - - - - - - - - - -
Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel