[Geoserver-devel] WPS input/ouput arrays

Do WPS’s have the ability to take in collections as Inputs or Outputs? For example an array of raster grids? Ive seen it so the user can use delimeters, such as a comma, and the input type is a string to express arrays. Is this the only way?

Dominique Bessette

Engineer, Software

General Dynamics Information Technology

Supporting Fleet Numerical Meteorology and Oceanography Center (FNMOC)

Office: 619-881-2748

On Wed, Aug 21, 2013 at 7:06 PM, Bessette-Halsema, Dominique E <
Dominique.Bessette@anonymised.com> wrote:

Do WPS’s have the ability to take in collections as Inputs or Outputs?
For example an array of raster grids? Ive seen it so the user can use
delimeters, such as a comma, and the input type is a string to express
arrays. Is this the only way?

The official way to have multiple inputs in WPS is to repeat the input
block N times,
GeoServer WPS machinery will translate it into a collection.
For gridded data we support TIFF and ArcGrid as formats, ArcGrid is text,
so suitable
for being included in a XML post request, TIFF can be base64 encoded, but
I'd suggest
to make it an external reference instead.

Gridded outputs are like input, outputs as lists are not really supported
in a general way,
but you can write your own ProcessParameterIO turning whatever Java bean
into
whatever external representation, so you're free to play it as you prefer

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

-------------------------------------------------------