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()));
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.