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;
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.