From: Peter F. <pfa...@in...> - 2006-05-23 01:39:49
|
Cory, Since somehow your name is attached to API-Filters in the Module Matrix (http://docs.codehaus.org/display/GEOTOOLS/Module+Matrix), could you help me out with my question below? (i.e. a code sample which creates a Filter to obtain a collection of all points within a radius of 10 miles... using version 2.2.C2)? It would be great to have more sample code of how to use filters and expressions... -Peter -----Original Message----- From: geo...@li... [mailto:geo...@li...] On Behalf Of Chris Holmes Sent: Monday, May 22, 2006 5:54 PM To: pfa...@in... Cc: geo...@li... Subject: Re: [Geotools-gt2-users] PostGIS with non-default (non-public) schemas not working? I haven't written straight GeoTools code in awhile. What're the errors you're getting? I'd prefer just to debug what's listed there. I work on GeoServer, and we only make filters with the parsers. I do know that for what you want you need a distance filter though. Chris Peter Fay wrote: > Chris, > I'm trying to do a simple filter in geotools 2.2.RC2 and used the example on > the geotools website: > http://docs.codehaus.org/display/GEOTOOLS/Filters > > This doesn't compile since all the class have changed. Can you give me a > code sample of how one would find the set of points within 10 miles of a > point? (would one use GeometryDistanceFilter?) > > For example, I have a postgis table with 1000 points. How would I obtain a > FeatureCollection that contains only those points within 10 miles of (x,y)? > > -Pete > > > -- Chris Holmes The Open Planning Project http://topp.openplans.org |