ThinkGeo.com    |     Documentation    |     Premium Support

Is it possible to check intersection collection of features with layer

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

Hi Riyaz,

We don’t have an API to do spatial query between layers, the detail implement for them is loop all features.

I think you can build a custom function to loop and query.

Regards,

Ethan