Jody Garnett wrote:
> Erik Løvlie wrote:
>> 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?
>>   
> That is correct.
>> 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.
>>   
> The Filter specification is mostly based on Strings (so "1", "1.0" are 
> considered equal to 1.0 ). You will find the GeoTools 2.4 implementation
> much improved.
>
> Jody
>
Good to hear :)

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