<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extract the coordinates of polyline in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/extract-the-coordinates-of-polyline/m-p/1070262#M3821</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I would like to extract the coordinates of polyline one by one later.&lt;/P&gt;&lt;P&gt;Is there a way?&lt;/P&gt;&lt;P&gt;here is my Code&lt;/P&gt;&lt;P&gt;foreach (CableGPSInfo gpsinfo in StaticCommon.CableGPSInfoList)&lt;BR /&gt;{&lt;BR /&gt;string[] gps = gpsinfo.GPS.Split(';');&lt;BR /&gt;double[] mappoint = new double[2];&lt;BR /&gt;Dictionary&amp;lt;double, double&amp;gt; posdic = new Dictionary&amp;lt;double, double&amp;gt;();&lt;BR /&gt;foreach (string point in gps)&lt;BR /&gt;{&lt;BR /&gt;string[] text = point.Split(',');&lt;BR /&gt;//if(gpsinfo.Fiberstart==)&lt;BR /&gt;if (text.Length &amp;gt; 1)&lt;BR /&gt;{&lt;BR /&gt;mappoint[0] = Convert.ToDouble(text[0]);&lt;BR /&gt;mappoint[1] = Convert.ToDouble(text[1]);&lt;BR /&gt;points.Add(mappoint[1], mappoint[0]);&lt;BR /&gt;posdic.Add(mappoint[1], mappoint[0]);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;polyline = new Esri.ArcGISRuntime.Geometry.Polyline(points);&lt;BR /&gt;points.Clear();&lt;/P&gt;&lt;P&gt;overlay.Graphics.Add(graphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I'm saying is that I want to extract the coordinate value of polyline drawn in overlay graphic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SungHyunKim_1-1624238299867.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16426iA3577F494ED60644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SungHyunKim_1-1624238299867.png" alt="SungHyunKim_1-1624238299867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 01:19:12 GMT</pubDate>
    <dc:creator>SungHyunKim</dc:creator>
    <dc:date>2021-06-21T01:19:12Z</dc:date>
    <item>
      <title>Extract the coordinates of polyline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/extract-the-coordinates-of-polyline/m-p/1070262#M3821</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I would like to extract the coordinates of polyline one by one later.&lt;/P&gt;&lt;P&gt;Is there a way?&lt;/P&gt;&lt;P&gt;here is my Code&lt;/P&gt;&lt;P&gt;foreach (CableGPSInfo gpsinfo in StaticCommon.CableGPSInfoList)&lt;BR /&gt;{&lt;BR /&gt;string[] gps = gpsinfo.GPS.Split(';');&lt;BR /&gt;double[] mappoint = new double[2];&lt;BR /&gt;Dictionary&amp;lt;double, double&amp;gt; posdic = new Dictionary&amp;lt;double, double&amp;gt;();&lt;BR /&gt;foreach (string point in gps)&lt;BR /&gt;{&lt;BR /&gt;string[] text = point.Split(',');&lt;BR /&gt;//if(gpsinfo.Fiberstart==)&lt;BR /&gt;if (text.Length &amp;gt; 1)&lt;BR /&gt;{&lt;BR /&gt;mappoint[0] = Convert.ToDouble(text[0]);&lt;BR /&gt;mappoint[1] = Convert.ToDouble(text[1]);&lt;BR /&gt;points.Add(mappoint[1], mappoint[0]);&lt;BR /&gt;posdic.Add(mappoint[1], mappoint[0]);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;polyline = new Esri.ArcGISRuntime.Geometry.Polyline(points);&lt;BR /&gt;points.Clear();&lt;/P&gt;&lt;P&gt;overlay.Graphics.Add(graphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I'm saying is that I want to extract the coordinate value of polyline drawn in overlay graphic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SungHyunKim_1-1624238299867.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16426iA3577F494ED60644/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SungHyunKim_1-1624238299867.png" alt="SungHyunKim_1-1624238299867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 01:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/extract-the-coordinates-of-polyline/m-p/1070262#M3821</guid>
      <dc:creator>SungHyunKim</dc:creator>
      <dc:date>2021-06-21T01:19:12Z</dc:date>
    </item>
  </channel>
</rss>

