I think this would be great to have, anything that increase
the expressiveness available to the process author is a step up.
Just to be clear the new stuff would be part of the Parameter class
directly right? and available to all process implementors, not just ones
using the annotation based stuff?
On Mon, Sep 24, 2012 at 2:31 AM, Victor Olaya <vol...@opengeo.org> wrote:
> Hi all
>
> I would like to propose two simple modifications to the Parameter
> class, to enhance the semantics of geoprocesses. They both can be
> implemented as new hints, and made available through the
> DescribeParameter annotation
>
> - A hint describing dependence of one parameter to another. The most
> typical use for that would be to indicate the relation between a
> String parameter representign and attribute and a FeatureCollection.
> That would allow the user interface to make it easier for the user to
> select the field, as it could be taken from the list of available ones
> for the selected FC
>
> I wonder if calling this a "relationship" rather than a dependency makes
more sense. What sort of other information will the relationship/dependency
relay? Like for instance, in this could be good to create the relationship,
but also state the semantic as well, something like: relate(attribute,
features, "attributeOf") or something. Just an idea.
- A hint describing the group of optional one a parameter belongs to.
> Some processes have a set of 2 or 3 parameters, from which just one
> has to be used (see the ContourProcess for example). If these grouping
> is not explicitly described, the UI will let the user fill all
> parameters or none of them, instead of enforcing using only one of
> them.
>
> Any ideas how this would be implemented? Maybe something like creating an
instance of Parameter called "Or" or something and then have it actually
wrap up the individual parameters that are in its mutual exclusive group.
> As you can see, it is a very simple thing, but I think that would add
> more robustness to the process semantics. Adapting existing processes
> to this change is trivial and should take little time to do.
>
> Looking forward to knowing your opinion on this.
>
Good stuff. Looking forward to see where this goes.
>
> Regards
>
> Victor
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel