Hi all,

I started playing around with adding parameter info to FunctionName today. I
attached a very rough page to this issue:

http://jira.codehaus.org/browse/GEOT-3569

By no means complete or ready to commit, but wanted to post it to foster
discussion and get some initial feedback.

So basically I tried to follow Jody's advice and reuse on of the existing
"parameter" classes we have, which actually turned out to be troublesome.
Basically here are the candidates i could find:

1. org.geotools.data.Parameter
2. org.opengis.parameter.ParameterDescriptor

1 would work generally but it is declared in gt main wheras the function
interface lives in gt-opengis.

2 sort of works but is (a) an absolute nightmare to program against
(getName() not returning a string, etc..). And it does not really allow me
to set min and max occurs cleanly. And quite honestly is really overkill for
what we need.

So moving forward i see the following possibilities:

1. Stick with ParameterDescriptor even though it is really messy
2. Factor out an interface for org.geotools.data.Parameter into gt-opengis
3. Roll our own new interface for Function parameters
4. Use some alternative that i did not find.

Thanks all. Feedback welcome.

-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to