[Geoserver-users] AllowedValues in WPS (Python) Process

Hello (Justin),

is it possible in the current WPS extension to define a literal input parameter which is restricted to a set of "AllowedParameters"?

Thanks,
Thomas

Hey Thomas,

Not at the moment no. But I am thinking what we could do is add is an additional parameter to the inputs tuple list. In this dictionary we could put the more optional stuff. So what I am thinking would be:

@process(
…,
inputs=( ‘param’: (Type, ‘description’, {‘values’: (‘value1’, ‘value2’, …)} )

)

What do you think?

···

On Fri, Jan 25, 2013 at 9:07 AM, <Thomas.Wanderer@anonymised.com> wrote:

Hello (Justin),

is it possible in the current WPS extension to define a literal input parameter which is restricted to a set of “AllowedParameters”?

Thanks,
Thomas


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.