Andrea Aime wrote:
> Manuele Ventoruzzo ha scritto:
>   
>> Hello everybody,
>>
>> I'm trying to upgrade my project from Geotools 2.2 to Geotools 2.3.2.
>> Could you help me?
>>     
>
> Yeah, revert your changes. 2.3 was rushed out of the door with filter
> overhaul mid way, and a lot of things do not simply work with the
> new filters. Keep using the old filters, and prepare for the change
> when 2.4 will be released.
>
> Cheers
> Andrea
>
>   
Hi, I have a question regarding this: will the filters in 2.4 be able to 
deal with any kind of literal values, not just String, numeric types, 
Boolean, Geometry and Date?

We have a need to use any class for attributes, and using a literal 
expression filter in the style checking that attribute. Looking at the 
implementation (org.geotools.filter.LiteralExpressionImpl) it really 
does some unnecessary things, like casting from Object to String before 
calling equals (it also claims to support only Double, Integer and 
String, which is not true). If it just called equals directly, it would 
automatically support any literal value which implemented the equals 
method.

Regards,
Erik

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to