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

OpenLayers trac-20090302 at openlayers.org
Wed Mar 16 06:55:50 EDT 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      
---------------------------+------------------------------------------------

Comment(by igrcic):

 Hi Bart,

 i did this for several reasons:

 The first patch only covered function support in spatial filters
 (writeSpatial function), the second one also covers other comparison
 types.

 In the first patch I was introducing two new variables inside filter:
 filter.functionName and filter.functionParams. Later on I thought that
 using already existing filter.value parameter would be better approach?
 Together with introducing Funcion class now we can do testing like:
 {{{
 if(filter.value instanceof OpenLayers.Filter.Function) {
     this.writeNode("Function", filter.value, node);
 }
 }}}
 writeOgcExpression method can now use this to check the expression type
 (for now only literal/function with possibility to add other type as
 PropertyName) and write it accordingly. Before it was only writing
 literals.

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


More information about the Trac mailing list