FYI, foreach(var city in citiesWithinBuffer) { city.Attributes["DistToPoint"]=Math.Square(Math.Pow((city.X+selectedPoint.X),2)+Math.Pow((city.Y+selectedPoint.Y),2)); } //using System.Linq; Graphic nearestCity=citiesWithinBuffer.Min(c=>double.Parse(c.Attributes["DistToPoint"].ToString()));
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.