1

I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem lies. in some feature classes points are really so close, for some feature classes, map unit is in feet and for some it is in meter. And the tolerance should vary for these case. For searching feature I personally use IFeatureClass.Search method.

Does there any better option to search a feature from a feature layer? Or does there any way to pick a preferable tolerance?

2

ArcMap has a default selection tolerance of 3 pixels. The IMxDocument interface exposes this value in two ways:

  • SearchTolerance: The global search tolerance in geographic units for selection. The application's search tolerance is measured and set using pixel units. This property automatically converts the size of the pixels to map units.
  • SearchTolerancePixels: This property controls the application's search tolerance. The search tolerance is measured in pixel units.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.