Tawan Banchuen
2010-05-26 22:38:02 UTC
Hi uDigers,
I am trying to synchronize selection in my application (based on Tupelo, another RCP project) with map selection in uDig. I am a bit confused about two different selection services in uDig: GeoSelectionService and ISelectionService. Which one should I register my listener to? Are you in the process of moving towards using GeoSelectionService for geo-objects selection?
If I should work with GeoSelectionService, the info I found below is not very useful Is there a better documentation?
http://udig.refractions.net/confluence/display/DEV/03+GeoSelectionService
On the other hand, I can easily register my listener to ISelectionService following this document:
http://udig.refractions.net/confluence/display/DEV/2+Training+Materials#2TrainingMaterials-WorkbenchSelection
I am also trying to find a selection tool for my uDig map view plug-in. I could not find a modal tool for selection in the package:
net.refractions.udig.tools.internal
Is there one?
I wonder whether this is the correct way to create a map selection programmatically: I create an OpenGIS filter and then send it to the map view as follows:
map.sendCommandASync(SelectionCommandFactory.getInstance().createSelectCommand(layer, filter))
As you can see, the SelectionCommandFactory class has been deprecated. What class should I use?
Thanks bunches for your help.
Regards,
Tawan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.refractions.net/pipermail/udig-devel/attachments/20100527/cbd70d79/attachment.html>
I am trying to synchronize selection in my application (based on Tupelo, another RCP project) with map selection in uDig. I am a bit confused about two different selection services in uDig: GeoSelectionService and ISelectionService. Which one should I register my listener to? Are you in the process of moving towards using GeoSelectionService for geo-objects selection?
If I should work with GeoSelectionService, the info I found below is not very useful Is there a better documentation?
http://udig.refractions.net/confluence/display/DEV/03+GeoSelectionService
On the other hand, I can easily register my listener to ISelectionService following this document:
http://udig.refractions.net/confluence/display/DEV/2+Training+Materials#2TrainingMaterials-WorkbenchSelection
I am also trying to find a selection tool for my uDig map view plug-in. I could not find a modal tool for selection in the package:
net.refractions.udig.tools.internal
Is there one?
I wonder whether this is the correct way to create a map selection programmatically: I create an OpenGIS filter and then send it to the map view as follows:
map.sendCommandASync(SelectionCommandFactory.getInstance().createSelectCommand(layer, filter))
As you can see, the SelectionCommandFactory class has been deprecated. What class should I use?
Thanks bunches for your help.
Regards,
Tawan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.refractions.net/pipermail/udig-devel/attachments/20100527/cbd70d79/attachment.html>