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()));
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.