Hello, I've moved your question to the users' list - I hope that's ok. Please see my response below.
On 25 February 2010 05:52, 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! > There isn't a selection tool at the moment (so you didn't miss it) but it's on the TODO list. However, please see this example which shows you one approach to creating your own selection tool... http://geotools.org/examples/selectionlab.html Note that there is presently a problem with the InfoTool when working map layers having different underlying projections. The issue is relevant to selecting features... http://jira.codehaus.org/browse/GEOT-2956 When that is sorted out a SelectTool class can be added, possibly for GeoTools 2.6.2 (fingers crossed :) Hope this helps. Please get back to the users' list if you want to discuss your own app in more detail. Michael ------------------------------------------------------------------------------ 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-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
