FeatureSource methods and QueryTools methods have some overllapping methods namely GetFeaturesWithinxxx etc
Question: Which of the above class should be used for feature query from Performance standpoint? Does it depend on the type of layer ?
FeatureSource methods and QueryTools methods have some overllapping methods namely GetFeaturesWithinxxx etc
Question: Which of the above class should be used for feature query from Performance standpoint? Does it depend on the type of layer ?
Anil,
The overlapping methods are on purpose and they all point to the same underlying methods on the FeatureSource. If you look at the FeatureSource API it is full of methods relating to spatial querying, editing etc. On the FeatureLayer we wanted to group these functions to make it easier for the user to identify them. To do this we create the QueryTools and EditTools properties that hang off of the FeatureLayer. This way the methods for editing and queries are grouped and easier to find. The QueryTools and EditTools methods all point back to the FeatureSource.
David
David,
Thanks for clarification on FeatureSource, QueryTools and EditTools.
Regards,
Anil
Anil,
No problem, glad I could help.
David