Have a review of this page: http://docs.geotools.org/latest/userguide/library/main/filter.html
It contains an example (with picture) of constructing a point in polygon filter. You can uses these to ask for matching features; or you can actually evaluate them yourself on each feature (and get true or false back). You may also want to consider a distance check (if your point is actually a user clicking on the screen you should try and select with something the "size" of a pixel). -- Jody Garnett On Sunday, 5 June 2011 at 4:24 AM, Jason Ferguson wrote: > I think I figured it out... but if this code looks wrong, can someone let me > know? > I get a list of features by type from the repository that are within the > location's bounding box, then filter... Not sure what feature repository is? Your code for grinding through a list of features looks fine. You may wish to use the "within" filter (if you need to check the other way around). Jody
------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
