There is something in the FunctionFinder that will look for a function
implementation (along with the fallback value if you could not find
it).
-  public Function findFunction(String name, List parameters, Literal fallback )

the method implemention ends with the following:

        if(  fallback != null ){
            return new FallbackFunction( name, parameters, fallback );
        }
        else {
            throw new RuntimeException("Unable to find function " + name);
        }


Jody

On Fri, Mar 19, 2010 at 3:50 PM, Michael Bedward
<michael.bedw...@gmail.com> wrote:
> Hi all,
>
> I'm trying to implement the Interpolate function based on skeleton in
> the render module (thanks again Jody for pointing me to this).
>
> The SE 1.1 spec says that Interpolate can have a fallback value. The
> only way to create a function with a fallback in GeoTools seems to be
> to use FilterFactoryImpl directly and call a deprecated method...
>
> http://javadoc.geotools.fr/2.6/org/geotools/filter/FilterFactoryImpl.html#function(java.lang.String,%20java.util.List,%20org.opengis.filter.expression.Literal)
>
> This seems unsatisfactory.  Am I missing something ?  And does anyone
> know what "Pending see org.opengis.filter.Factory2" means ?
>
> Michael
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Geotools-devel mailing list
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to