[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] filter selection problem
|
Hmmm. Sounds a little like a bug... I'll try to take a look at it.
Could you put a break point in the renderer to verify that it gets
triggered again after you put the filter on.
Also...
Is the feature a new feature?
Or does it exist in the layer?
Does it start to work if you delete the .fix file?
Jesse
On Oct 10, 2007, at 10:06 AM, Andrea Antonello wrote:
Hi, I'm running into a strange problem with programmatic selection
on a
layer:
I create a fid filter adding the fids of the needed features:
FidFilter fidFilter =
FilterFactoryFinder.createFilterFactory().createFidFilter();
add the needed fids:
fidFilter.addFid(feature.getID());
and afterwards as copied from the selection tool the following renders
the selected features:
MapCommand command =
getContext().getSelectionFactory().createSelectCommand(basinLayer,
fidFilter);
getContext().sendASyncCommand(command);
selecting = false;
shapeCommand.setValid(false);
getContext().getViewportPane().repaint();
This works like a charms, apart of the situation in which I add jsut a
single feature. In that case the feature gets selected in the table
view, but not rendered inside the map window.
Any idea about what that could be? I can't find a reason...
Thanks,
Andrea
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel