Hi,
We have been using GeoTools 2.7 for several years. The developer, who handled GeoTools in our application left. My task is to adapt our code to GeoTools 22.1. Most modifications were straightforward. I struggle with one piece of code, which is used to implement custom filters: public static Filter createGeotoolsFilter(final ISimpleFeatureFilter simpleFeatureFilter) { FilterFactory2 ff2 = CommonFactoryFinder.getFilterFactory2(null); UUID key = UUID.randomUUID(); EnvFunction.setGlobalValue(key.toString(), new CustomFunction.ICustomFunctionImplementation() { public Object evaluate(Object feature) { return simpleFeatureFilter.evaluate((SimpleFeature) feature); } }); return ff2.equals(ff2.function("custom", ff2.function("env", ff2.literal(key.toString()))), ff2.literal(true)); } The problem is CustomFunction.ICustomFunctionImplementation does no longer exist in GeoTools 22.1. Is there a simple, straightforward solution to this, which I can implement locally in that method? Regards, Peter
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users