Hello there,

I'm trying to filter a WFS layer's features according to their property
"arrivaltime":
each feature has this time property with a value of e.g. 0.0, 120.0, 180.0,
240.0, 300.0. I would like to display only those features whose arrival time
corresponds to the following expression:
arrivaltime mod 120 = 0

In other words, I would like to display only those features with an arrival
time of 0.0, 120.0, 240.0, 360.0,...

Something like this, but correct :-):
FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
PropertyName property = ff.property("arrivaltime");
PropertyIsEqualTo etf = ff.equals(property % 120.0, ff.literal(0));

Thanks for your advise!

Best regards,
Monika
-- 
View this message in context: 
http://www.nabble.com/filter%3A-modulo-tp19607641p19607641.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to