[OpenLayers-Trac] Re: [OpenLayers] #2522: Format.CQL for seralizing and deserializing filters

OpenLayers trac-20090302 at openlayers.org
Fri Jan 28 17:29:10 EST 2011


#2522: Format.CQL for seralizing and deserializing filters
---------------------+------------------------------------------------------
 Reporter:  tschaub  |       Owner:  tschaub     
     Type:  feature  |      Status:  assigned    
 Priority:  minor    |   Milestone:  2.11 Release
Component:  Format   |     Version:  2.8         
 Keywords:           |       State:  Review      
---------------------+------------------------------------------------------

Comment(by tschaub):

 This will make a really great addition.  In reviewing, I've caught a few
 things and added tests.  There is still one failing test.  Here's what
 I've done so far:

  * removed trailing commas to get it to load in IE
  * added semicolons where appropriate (improves things with our limited
 compressor)
  * updated example to allow users to change CQL and see results
  * added CQL.js format to OpenLayers.js loader
  * added docs
  * made it so comparison filters are written with quoted strings only
 (numbers were quoted as well)
  * added write support for WITHIN, INTERSECTS, CONTAINS
  * replaced use of bracket notation with {{{charAt}}} for strings (the
 former doesn't work in IE and was causing infinite recursion)
  * made infinite recursion less likely in the balanced parentheses matcher
 for geometries
  * made it possible to use spatial filters in a logical filter - this
 required adding SPATIAL before PROPERTY to the list of follows for LOGICAL
 (tests pass, but this needs confirmation as the right thing to do)
  * made it so spatial filters store geometries instead of features

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


More information about the Trac mailing list