[OpenLayers-Trac] Re: [OpenLayers] #3053: Geoserver filter Functions support in OL filter encoding

OpenLayers trac-20090302 at openlayers.org
Thu Mar 10 08:56:56 EST 2011


#3053: Geoserver filter Functions support in OL filter encoding
---------------------------+------------------------------------------------
 Reporter:  igrcic         |       Owner:              
     Type:  feature        |      Status:  new         
 Priority:  major          |   Milestone:  2.11 Release
Component:  Format.Filter  |     Version:  2.10        
 Keywords:                 |       State:  Review      
---------------------------+------------------------------------------------
Changes (by igrcic):

  * state:  Needs More Work => Review


Comment:

 Hi Bart,

 here is the new version of the patch. This patch adds support for creating
 function elements inside geometry and comparison filters. Let me describe
 it shortly.

 I introduced new filter Function class, that takes function name, and
 function parameters as input. Function parameters for now can be literals
 , or other functions, thus enabling us creation of complex nested filters
 with functions.

 As you can see inside filter class I added writeOgcExpression method that
 is doing the checkup of the value, and in the case of Function writes out
 function element, otherwise it assumes its a literal. This function is
 then used in all comparison filters that were just writing Literals
 before. Later on, we can add support for other value types, such as
 PropertyNames.

 Included are tests for writing geometry filters with functions and nested
 functions, as well comparison filter with functions.

 Please let me know what you think about it, is there something more I can
 do, let me know.

 Thank you & regards,
 Ivan

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3053#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list