Hi,
I have scenario to check collection of features intersecting with a layer or not. By that I am looping all features to checking it.So it’s taking time for looping it.
Code:
for (int j = 0; j < ftRoutes.Count; j++)
{
wfMap.FindFeatureLayer(“SigmetLayer”).Open();
ftSigmets = wfMap.FindFeatureLayer(“SigmetLayer”).FeatureSource.SpatialQuery(ftRoutes[j], QueryType.Intersects, ReturningColumnsType.AllColumns);
wfMap.FindFeatureLayer(“SigmetLayer”).Close();
}
Is it possible to check all features(with out loop) are intersecting with layer or not?
suggest me any ideas to achieve it.
Thanks,
Riyaz