Its look like that a new method has been added in the Function interface (see attached diff), and GeoTools implementation do not yet implement it.

Given that the documentation in the returns tag said "Optional", I assume that it is okay to just implement them as "return null" in GeoTools.

        Martin

Index: geoapi/src/main/java/org/opengis/filter/expression/Function.java
===================================================================
--- geoapi/src/main/java/org/opengis/filter/expression/Function.java    
(révision 1192)
+++ geoapi/src/main/java/org/opengis/filter/expression/Function.java    (copie 
de travail)
@@ -29,6 +29,7 @@
  * by that specification.
  *
  * @version <A HREF="http://www.opengis.org/docs/02-059.pdf";>Implementation 
specification 1.0</A>
+ * @version <A HREF="http://www.opengeospatial.org/standards/symbol";>Symbology 
Encoding Implementation Specification 1.1.0</A>
  * @author Chris Dillard (SYS Technologies)
  * @since GeoAPI 2.0
  */
@@ -49,4 +50,14 @@
      * parameters to the function.
      */
     List<Expression> getParameters();
+    
+    /**
+     * The value of the fallbackValue attribute is used as a default value, if 
the SE
+     * implementation does not support the function. If the implementation 
supports the
+     * function, then the result value is determined by executing the function.
+     * 
+     * @return Optional Literal to use if an implementation for this function 
is not available
+     */
+    @XmlElement("fallbackValue")
+    Literal getFallbackValue();    
 }
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to