[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] programmatically selecting features for highlighting
|
Jesse Eichar schrieb:
The Table view simply tracks changes to the filter on the selected
layer. You can put a filter on a layer. There should be a command
available to do this. Look for something like SetFilterCommand or
something similar.
FidFilter ff =
FilterFactoryFinder.createFilterFactory().createFidFilter(fid);
map.sendCommandASync(SelectionCommandFactory.getInstance().createSelectCommand(layer,ff));
the map renders but nothing is selected.
Playing around with
map.sendCommandASync(SelectionCommandFactory.getInstance().createSelectCommand(layer,Filter.ALL));
still nothing seleted. Hmm?
map.sendCommandASync(SelectionCommandFactory.getInstance().createSelectCommand(layer,Filter.NONE));
all features of my layer are selected. What?
I gues I haven't understand the filter principles. What's wrong with my
code where I use the FidFilter?
I also tried
map.sendCommandSync(SelectionCommandFactory.getInstance().createFIDSelectCommand(layer,
fid));
but the same result: Nothing selected.
Thanks for your help!
Matthias