Extract the coordinates of polyline

142
0
06-20-2021 06:19 PM
SungHyunKim
New Contributor

 I would like to extract the coordinates of polyline one by one later.

Is there a way?

here is my Code

foreach (CableGPSInfo gpsinfo in StaticCommon.CableGPSInfoList)
{
string[] gps = gpsinfo.GPS.Split(';');
double[] mappoint = new double[2];
Dictionary<double, double> posdic = new Dictionary<double, double>();
foreach (string point in gps)
{
string[] text = point.Split(',');
//if(gpsinfo.Fiberstart==)
if (text.Length > 1)
{
mappoint[0] = Convert.ToDouble(text[0]);
mappoint[1] = Convert.ToDouble(text[1]);
points.Add(mappoint[1], mappoint[0]);
posdic.Add(mappoint[1], mappoint[0]);
}
}
polyline = new Esri.ArcGISRuntime.Geometry.Polyline(points);
points.Clear();

overlay.Graphics.Add(graphic);
}

What I'm saying is that I want to extract the coordinate value of polyline drawn in overlay graphic.

SungHyunKim_1-1624238299867.png

 

0 Kudos
0 Replies