Hi Martin, Check out the org.geotools.filter.visitor.DuplicatingFilterVisitor class. That should do the trick for you.
-Justin Martin Schmitz wrote: > Hello everybody, > > is there a method to clone a Filter object? > > I "prepare" a Filter and apply it to several FeatureSources. > Thereby I recognized, that sometimes also the results of FURTHER created > sub-collections changes, when changing the expressions of the Filter object! > > For several reasons I can not recreate the complete Filter before > calling FeatureSource.getFeatures( filter ). At the calling point my > program doesn't have any information about the filer. > So the easiest way seems to be to clone the given filter object. > But how? > > Thanks for help... > > Martin > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > !DSPAM:4007,4714e57f33261804284693! > -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users