Input filtering for a custom WPS

Is it possiblle to filter the dropdown list for a WPS input, based on criteria, for example number of bands or metadata value? Maybe through the meta tag in @DescribeParameter somehow?

In my case, I would like to filter a Coverage2D input.

Thanks in advance!!

Hello @alexander-petkov and welcome to the discussion forum.

Because you mention drop-down-list I expect you make be talking specifically about the WPS Request builder. The @DescribeParameter does have the ability to list options, not sure exactly if the WPS Request Builder respects those or not.

The metadata map stores constraints, and a few keys like “min” and “max” and “password” have associated methods for access. Presently “options” is just documented with a javadoc, but if it is popular a helper method could be made.

    /**
     * As an alternative to "min" and "max" a speciifc List<T> of options can be provided for a user to choose between.
     * The description should explain what the options mean.
     *
     * <p>Example: a compliance level of (0-low,1-medium,2-high)
     *
     * <p>Although a List<T> is used here (so you can specifiy order) it is assumed you will not confuse your users by
     * placing duplicates in the list.
     */
    public static final String OPTIONS = "options";