Select to view content in your preferred language

Select Layer By Location vs FeatureClass.Search

259
1
07-02-2024 06:56 PM
MaxW
by
Emerging Contributor

I have a question: Why is the execution speed of "Select Layer By Location" in ArcGIS Pro very fast, but when using SpatialQueryFilter in the SDK to perform a search on FeatureClass, the speed is very slow? Both operations involve intersecting tens of thousands of points. Can anyone explain this?

0 Kudos
1 Reply
sjones_esriau
Esri Contributor

Caching, would be my guess.

Pro has done most of the hard work when working with layers in the map.

Operations on the featureclass have to reach out to the data source, as opposed to working with a layer or mapmember class.