[ 
http://jira.codehaus.org/browse/GEOT-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauricio Pazos reopened GEOT-1666:
----------------------------------


> Create a TXT extention of CQL
> -----------------------------
>
>                 Key: GEOT-1666
>                 URL: http://jira.codehaus.org/browse/GEOT-1666
>             Project: GeoTools
>          Issue Type: New Feature
>          Components: core cql
>    Affects Versions: 2.5-M0
>            Reporter: Jody Garnett
>            Assignee: Mauricio Pazos
>             Fix For: 2.6-M0
>
>
> One of the things that blocks wider acceptance of the excellent CQL code is 
> the limited scope of the common query language. In GeoTools we have a more 
> relaxed view of a filter; and it would be nice to make a TXT format that 
> matches what we can do!
> Here is what our new TXT format needs to do (over and beyond the current 
> abilities of CQL):
> # support for spatial and comparison filters between any two expressions (CQL 
> is limited to: propertyName OP expr)
> #- CQL: propertyName contains geometry
> #- TXT: geometry contains geometry
> # support for the Id filters as defined by Filter 1.0 specification
> #- CQL: n/q
> #- TXT: #road.1, #road.2
> This request is for a new grammar (called TXT) that extends the CQL BNF to 
> account for these ideas. The new format should be presented as a seperate 
> facade class (even though behind the scenes it will share a lot of code with 
> the normal CQL implementation classes).
> The new TXT grammar facade class is method compatible with CQL facade class:
> {code}
> class TXT {
>     String toTXT( Expression );
>     String toTXT( Filter );
>     Expression toExpression( String );
>     Expression toExpression( String, FilterFactory );
>     Filter toFilter( String );
>     Filter toFilter( String, FilterFactory );
>     List<Filter> toFilterList(String);
>     List<Filter> toFilterList(String,FilterFactory);
> }
> {code}
> Existing specificaitons like CAT2 allow the specificaiton of a 
> *queryLanguage*; if an application wishes to make this format available to 
> the public it is advised that "txt" be a more expressive alternative 
> queryLanaguage to "cql".
> Here are some technical notes from Mauricio:
> {panel}
> That is possible, I suggest  to maintain different dialects that reuse the 
> existent software infrastructure.
> The dialects would allow:
> 1 - to associate the context which the specific language must be used  
> 2-  to redefine the original rules without conflict.    
> 3-  to reuse the "builders" for semantic actions
> {panel}
> Here are some examples (requested from Maria):
> * area( the_geom ) > 30,000
> * #road.1,#road.2, #road.47

-- 
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

        

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to