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;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.