Hi Enam,

I might be wrong, but guess a like filter is meant to work over textual 
content (aka, expressions that evaluate to Strings).

Don't you want to use a between filter for numeric values? between has a lot 
more chances to finally be encoded as the proper sql where clause in the end.

Regards,

Gabriel

On Monday 23 April 2007 07:41, Enam wrote:
> Consider a shape file that has an attibute of type Double. When using the
> PropertyIsLike filter, I'm having some trouble matching. A double can look
> very different at various points, i.e. 1.602323E6, 10002.0, etc.  However,
> the main problem is that it actually is just a long stored as Double in the
> shape file. I'd like to do sth like this:
>
> Filter likeFilter = filterFactory_.like(filterFactory_.property("PP_ID"),
> somePattern);
> fstore.removeFeatures(likeFilter);
>
> But this doesn't work for the reason I mentioned earlier. What I really
> need is some control as to how the filter is used to remove the features. I
> need this :
>
> when doing the matching with PP_ID attribute the double value be converted
> to a long before matching with the pattern.  Is there any way of doing this
> ?
>
> Regards,
> Enam

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