ESRI.ArcGIS.Client.Geometry.PointCollection points = myPolygon.Rings[0];
ESRI.ArcGIS.Client.Geometry.Polygon polygon = (ESRI.ArcGIS.Client.Geometry.Polygon)graphic.Geometry; int ringCount = polygon.Rings.Count; for (int i = 0; i < ringCount; i++) { ESRI.ArcGIS.Client.Geometry.PointCollection pc = polygon.Rings; foreach (ESRI.ArcGIS.Client.Geometry.MapPoint mp in pc) { MapPoint coordinates = new MapPoint(mp.X, mp.Y); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.