[Geoserver-devel] WPS process for paginated unique values extraction

Hi,
I have just prepared a pull request (https://github.com/geoserver/geoserver/pull/618) for a WPS process that extracts unique values from a SimpleFeatureCollection attribute, with pagination functionality.

The process takes advantage of some optimizations done on Geotools JDBCDataStore to allow executing the unique extraction with pagination directly on db.

We did not extend the existing Unique process, because to have pagination we needed an output containing both the list of unique values and the total # of values, without pagination applied.

As per previous discussion on the ml we did not find an easy solution to have that information added to the GML output of the original Unique process.
Currently we added a custom PPIO that supports json format, but I think other formats can be added if needed (for example XML).

The output is something like:
{
values:[“a”, “b”, “c”],
size: 10,
featureTypeName: “Feature”,
fieldName: “Field”
}

Regards,
Mauro Bartolomeoli

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it