Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.7.0
-
Fix Version/s: None
-
Component/s: main
-
Labels:None
-
Testcase included:yes
Description
Per discussion on this thread (http://osgeo-org.1803224.n2.nabble.com/Contribution-of-some-FilterVistors-and-other-utilities-tp6265810p6265810.html), attached are some FilterVisitors and utility functions for manipulating filters.
The FilterTestContext contains a bit of extra code because we use it for classes that I am not contributing (yet). I can only translate so much groovy to java at a time. Putting in all the semicolons and typecasting drives one bonkers after a while.
1. |
NotImpl incorrectly supporting BinaryLogicalOperator | |
|
Jody Garnett | |
| 2. | Filters utility methods for AND and OR management | |
|
Unassigned | |
| 3. | PrePostFilterVisitors | |
|
Jody Garnett |
As for whether to keep the FF or not, I found it useful to have a standard, pre-built one with good defaults in the apps I have used the utils class in, especially for other developers who needed to use one but who didn't know the details of geotools or creating one. However, if these methods are merged into the Filters class and we drop the "addFilter" method in favor of the existing "and" and "or" methods, then we can sidestep the issue because none of the other methods need a factory.
Other responses coming. Just have to get through an interminable conference call first.