There are some filter examples here: - http://docs.codehaus.org/display/GEOTDOC/Filter+Examples
Which includes selecting using a bbox (ie make a bounding box for the pixel the user clicked on and select out what content is there). You may also find the style workbook useful (http://geotoolsnews.blogspot.com/2009/11/foss4g-geotools-tutorials.html) as it includes generating a style to "show" a selected feature. Ie click on the map; create a style to highlight the feature the user clicked on. Jody On 25/02/2010, at 5:52 AM, LSA wrote: > Hi all! > > I am incorporating JMapPane (it is also used by JMapFrame) > to render ESRI ShapeFiles. I use Geotools version 2.6.1. I > need to select features on my JMapPane-driven map (using > some sort of selection tool) and be able to obtain list of > selected features programmatically. > > Currently, geotools contains few tools (called Actions), > like PanAction, ZoomInAction, ZoomOutAction, > IdentifyAction - and no SelectAction among them. > > Did I miss something? Can someone advice me demo or like > on such a functionality? > > Thanks! > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
