You'll want the `IEEERemainder` function documented on the Filter Function Reference page ( https://docs.geoserver.org/latest/en/user/filter/function_reference.html#math-functions) -
<ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:Function name="IEEERemainder"> <ogc:Function name="int2ddouble"> <ogc:PropertyName>propertyVa</ogc:PropertyName> </ogc:Function> <ogc:Literal>20.0</ogc:Literal> </ogc:Function> <ogc:Literal>0</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> Ian On Wed, 20 Mar 2024 at 08:13, Ярослав Минин via Geoserver-users < geoserver-users@lists.sourceforge.net> wrote: > Hello community! > > I’ve got troubles with filter expression. I have an integer column with > values, like 2, 5, 30, 100… > And I need to filter those divisible by 25, for instance. > > Since I’m currently unable to manipulate the DB (to create the views for I > need) the only option is sld-filtering. Is there any way to achieve this? > > -- > Regards, > Yaras > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ian Turton
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users