<?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 Save polyline in Archive in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/save-polyline-in-archive/m-p/324578#M2060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm Trying to save a polyline in any type of archive (Json,txt.. etc.) in order that when I need it, just serialize the archive as an object type Polyline, any ideas?&lt;/P&gt;&lt;P&gt;Thanks for reading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my actual code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim myPart As List(Of Esri.ArcGISRuntime.Geometry.MapPoint) = New List(Of Esri.ArcGISRuntime.Geometry.MapPoint)&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.693752, -100.295526))&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.694342, -100.295251))&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.692744, -100.295641))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'I want to save my object myPolyline'&lt;BR /&gt; Dim myPolyline As Esri.ArcGISRuntime.Geometry.Polyline = New Esri.ArcGISRuntime.Geometry.Polyline(myPart)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Dim &lt;SPAN&gt;distance&amp;nbsp;&lt;/SPAN&gt;As Double = Esri.ArcGISRuntime.Geometry.GeometryEngine.Distance(myPolyline, New&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.Geometry.MapPoint(25.684215, -100.296886))&lt;BR /&gt;distance= &lt;SPAN&gt;distance&lt;/SPAN&gt;* 100000&lt;BR /&gt; Console.WriteLine("The distances is: ")&lt;BR /&gt; Console.Write(&lt;SPAN&gt;distance&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a polyline with given points, and I obtain the distance between two geometries, in this case, the polyline and a point. in Km.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 19:39:09 GMT</pubDate>
    <dc:creator>joelbarcenas</dc:creator>
    <dc:date>2016-11-18T19:39:09Z</dc:date>
    <item>
      <title>Save polyline in Archive</title>
      <link>https://community.esri.com/t5/developers-questions/save-polyline-in-archive/m-p/324578#M2060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm Trying to save a polyline in any type of archive (Json,txt.. etc.) in order that when I need it, just serialize the archive as an object type Polyline, any ideas?&lt;/P&gt;&lt;P&gt;Thanks for reading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my actual code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim myPart As List(Of Esri.ArcGISRuntime.Geometry.MapPoint) = New List(Of Esri.ArcGISRuntime.Geometry.MapPoint)&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.693752, -100.295526))&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.694342, -100.295251))&lt;BR /&gt; myPart.Add(New Esri.ArcGISRuntime.Geometry.MapPoint(25.692744, -100.295641))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'I want to save my object myPolyline'&lt;BR /&gt; Dim myPolyline As Esri.ArcGISRuntime.Geometry.Polyline = New Esri.ArcGISRuntime.Geometry.Polyline(myPart)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Dim &lt;SPAN&gt;distance&amp;nbsp;&lt;/SPAN&gt;As Double = Esri.ArcGISRuntime.Geometry.GeometryEngine.Distance(myPolyline, New&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.Geometry.MapPoint(25.684215, -100.296886))&lt;BR /&gt;distance= &lt;SPAN&gt;distance&lt;/SPAN&gt;* 100000&lt;BR /&gt; Console.WriteLine("The distances is: ")&lt;BR /&gt; Console.Write(&lt;SPAN&gt;distance&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a polyline with given points, and I obtain the distance between two geometries, in this case, the polyline and a point. in Km.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 19:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/save-polyline-in-archive/m-p/324578#M2060</guid>
      <dc:creator>joelbarcenas</dc:creator>
      <dc:date>2016-11-18T19:39:09Z</dc:date>
    </item>
  </channel>
</rss>

