Justin Deoliveira schrieb:
> Which version of geotools are you using? On 2.4 it seems to have been
> deprecated and replaced with DuplicatingFilterVisitor. Which makes sense
> because the filter api changed in 2.4.
> 
> So... if you are working with 2.3.x or below the following should work:
> 
> DuplicatorFilterVisitor dfv = new DuplicatorFilterVisitor(ff);
> dfv.visit( myFilter );
> 
> Filter filterCopy = (Filter) dfv.getCopy();

On 2.3.4 this does NOT work. I got a RuntimeException that this 
operation is not (yet) supported on Filter!

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to