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;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.