I'm using GT2.3.4 and here is the stack trace:
java.lang.RuntimeException: visit(Filter) unsupported
at
org.geotools.filter.visitor.DuplicatorFilterVisitor.visit(DuplicatorFilterVisitor.java:87)
at schmitzm.geotools.FilterUtil.cloneFilter(FilterUtil.java:28)
Meanwhile I recognized that I can avoid this error by setting the
"strict"-Flag in DuplicatorFilterVisitor constuctor to FALSE.
BUT: I'm not really sure, that I get a REAL clone of the filter, because
the phenomenon mentioned in an former mail still occurs...
Martin
Justin Deoliveira schrieb:
> Hi Martin,
>
> Can you send the stack trace of the exception as well. Thanks.
>
> -Justin
>
> Martin Schmitz wrote:
>> 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
>>
>> !DSPAM:4007,4715292c161474901796417!
>>
>
>
-------------------------------------------------------------------------
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