Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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