Depending on your map-coordinate system you should also transform your coordinates returned from your mouse-position into real world coords before doing any buffer (as mentioned by Barbara Schneider) or calculating any near features (see @Bill Brodie)
IEnvelope env = new EnvelopeClass(); env.SpatialReference = pMap.SpatialReference; env.PutCoords(x - ..., y - ..., x + ..., y + ...); ... spatial_filter.Geometry = env;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.