On 5/22/07, Ian Turton <[EMAIL PROTECTED]> wrote: > On 5/10/07, Justin Deoliveira <[EMAIL PROTECTED]> wrote: > > Hi Ian, > > > > Were you creating the geoapi filters using the FilterFactory? I believe > > you are correct in that that interface has a dependency on geoapi > > geometry. However the FilterFactory2 interface is an extension which > > allows you to create filters without geoapi geometries. > > > > I realize that isn;t exactly intuitive. We should really clean that up > > before our 2.4 release... > > OK I found some time to go back to geotools today and try this. As you > say it lacks intuitiveness and documentation, so I'm guessing I do > something like > > Filter f = ff.contains(ff.literal(geomName),ff.literal(geometry)); > where ff is a FilterFactory2. >
OK after some further thinking and more caffeine I now see that should be Filter f = ff.contains(ff.property(geomName),ff.literal(geometry)); So JMapPane on trunk now works using the latest undeprecated filters. Ian -- Ian Turton http://www.geotools.org http://pennspace.blogspot.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users