Hi,
I'm using the QueryTools.GetFeaturesNearestTo, providing a PointShape. I have ~34,000 point features loaded into my layer.
It is taking about 1.3 seconds to return the nearest features. Since I am using this method for selection, context menus, etc, 1.3 seconds seems pretty slow.
Is there a way to speed this up? I have tried using a QuadTree, and that hasn't seemed to help.
Usually, the user is zoomed in when they are selecting, so is there a way to reduce the query set to just the features within the displayed screen view, and then use those to query for the one closest to the PointShape I specify? I'm thinking the QueryTools is searching through all Features, and I don't need that. I'm thinking of a new version of GetFeaturesNearestTo like this:
GetFeaturesNearestTo(BaseShape targetShape, RectangleShape searchArea, GeographyUnit unit, int numItems, ReturningColumnTypes types)
Thanks,
Greg