Allow CQL Parser to parse a list of filters separated by a delimiter character
------------------------------------------------------------------------------

                 Key: GEOT-1162
                 URL: http://jira.codehaus.org/browse/GEOT-1162
             Project: GeoTools
          Issue Type: New Feature
          Components: new modules
    Affects Versions: 2.3.1, 2.4.M0
            Reporter: Gabriel Roldán
         Assigned To: Gabriel Roldán
             Fix For: 2.3.1, 2.4.M0


GeoServer needs to parse a list of filters from a CQL_FILTER kvp parameter in 
order to apply each one to a layer in the order of appearance in the LAYERS kvp 
parameter.
 For exaple:
{{attr1 > 5|attr2 between 1 and 7| attr3 = 'text|with|delimiter'}} should be 
parsed to a {{List}} with the three different Fitlers. It would be far easier 
to instruct the javacc parser to do that than doing it at the GeoServer side 
'by hand'.
---------
The requirement from Andrea:

the WSF filter spec uses ( and ) to separate OGC filters in a get
request. I'm looking for a separator for CQL. It seems [ and ] would do?
What I need to do is to parse something like:

{{CQL_FILTER=[A + B < 10][ATT1 = "Gimbo"]}}
or
{{CQL_FILTER=A + B < 10|ATT1 = "Gimbo"}}

into two separate filters. Does CQL have the concept of a filter list?
I need to pick up a character that has low likeliness of interfering
with the CQL itself, since our way to split OGC filters is to use
a lame StringTokenizer, that can't really manage nesting


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to