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;
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.