>>not sure if you noticed the expr.evaulate( Object content, Class target ) >>syntax yet?
Nice. I can see how that would eliminate numeric / date / etc problems. >>CommonFactoryFinder.getFilterFactory2( null ) -- will give you a >>GeoAPI filter factory that is quite good. Thanks for the tip. Will this primarly be of benefit over a standard getFilterFactory( null ) in terms of the geometry, or are there other benefits as well? >>Use the CQL utility class (very helpful for test cases and the like). I found that one, and I'm liking it :) Round-trip with the SQLEncoder too, which is grand. Thanks for the help. John Fletcher -----Original Message----- From: Jody Garnett [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 12:35 PM To: John Fletcher Cc: [email protected] Subject: Moved target, Filter stuff is now pure GeoAPI interfaces GeoTools 2.4 is pretty good; not sure if you noticed the expr.evaulate( Object content, Class target ) syntax yet? It clears up a lot of the previous problems when mixing "1", "1.0", 1 and 1.0. You can also evaulate your filters on Objects and Features, and anything else you want to write a property accessor for. In the user guide you can see how to make filters these days: - CommonFactoryFinder.getFilterFactory2( null ) -- will give you a GeoAPI filter factory that is quite good. - Use the CQL utility class (very helpful for test cases and the like). Cheers, Jody > Hello GT users, > > In the past I've used org.geotools.filter.Filter.and(...) etc. to > combine filters, but that's now deprecated. In 2.3.5 I'd like to do > the same thing, and it looks like I'll want to get a FilterFactory > using FilterFactoryFinder. However, I seem to be running into other > deprecated interfaces even with that route. A look at the 2.4 docs > shows that in there FilterFactoryFinder is deprecated, replaced by > CommonFactoryFinder. My question is, should I jump to 2.4 to benefit > from the new API or are there further plans to refactor beyond 2.4 wrt > Filters / geoapi? > > John Fletcher > > > > ---------------------------------------------------------------------- > --- 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 > ------------------------------------------------------------------------- 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
