CQL comes from a standard (some kind of library standard I think?). It is used 
by the open geospatial consortium catalog specification which is why we 
bothered with it. The standard is strict and kind of matches up with the Filter 
objects we use for GeoTools. The idea of having a property in each filter is 
part of that filter standard.

There is an ECQL (ie extended!) which should let you make invalid queries such 
as 1=1

Give it a go; it is what I use for uDig - and it has some other extensions that 
make creating "feature id" filters easier.

Jody

On 21/05/2010, at 12:54 AM, LSA wrote:

> Hi everyone!
> 
> I think CQL implementation in geotools has bug, or very annoying feature:
> There is not ability to enter expressions without attributes. For example, 
> evaluate the following expression 1=1 - you will get exception, that first 1 
> is unexpected. However, it is quite possible situation, for example, how can 
> you evaluate the following: ID()=1?
> 
> P.S. BTW, where can I found complete specification of CQL? 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to