<?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 Re: Identify the distance between two co-ordinates (Lat and Long) on a polyline in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166730#M1908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response Morten Nielsen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;As per your suggestion we would like to use the GeometryEngine.LengthGeodetic method to find the length of a polyline between two points. Please note that GeometryEngine.LengthGeodetic expects poly line as a parameter. Could you please explain how do we split the above long poly line into parts at each points as small poly lines or links so that we can calculate the distance for each small poly line or link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2019 12:49:01 GMT</pubDate>
    <dc:creator>Naresh_KumarK</dc:creator>
    <dc:date>2019-02-28T12:49:01Z</dc:date>
    <item>
      <title>Identify the distance between two co-ordinates (Lat and Long) on a polyline</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166726#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to calculate the distance between two co-ordinates on a polyline by passing point 1 and point 2 as a parameter by using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DistanceGeodetic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;startPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; endPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; LinearUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Meters&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; AngularUnits&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Degrees&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; GeodeticCurveType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geodesic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Distance‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of the above method is only returning the straight line distance instead of considering curves etc. This really pushing our distance calculation off. Could you please advise the best suitable method for the above purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166726#M1904</guid>
      <dc:creator>Naresh_KumarK</dc:creator>
      <dc:date>2019-02-25T07:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identify the distance between two co-ordinates (Lat and Long) on a polyline</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166727#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;The result of the above method is only returning the straight line distance instead of considering curves etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by this? The above code would return the shortest distance between the two points,&amp;nbsp;which will be a straight line (but following the curvature of the earth, rather than going through the earth's crust). However that straight line might not look straight on a projected map and appear curved due to the&amp;nbsp;distortion caused by the projection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give an example of two coordinates, and the distance you're getting vs. what you'd expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 18:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166727#M1905</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-02-25T18:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identify the distance between two co-ordinates (Lat and Long) on a polyline</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166728#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;&lt;A _jive_internal="true" data-userid="3050" data-username="mnielsen-esristaff" href="https://community.esri.com/people/mnielsen-esristaff" style="color: #000000;"&gt;Morten Nielsen&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Following are my requirements, I'm developing a WPF application using ARCGis SDK for .Net and c# programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Requirement 1&lt;/STRONG&gt; :&amp;nbsp;&lt;STRONG&gt;need to find the distance between two points by following a poly line. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here i'm having a Poly line p and point1 and point2 are the points on the polyline p, now&amp;nbsp;want to calculate the distance between Point1 and Point2 by following the polyline which is 3 kms, but GeometryEngine.DistanceGeodetic methods returns the shortest and linear distance between the points which is 2 kms. So please suggest a way to achieve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG __jive_id="438084" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/438084_ref7.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Requirement&lt;SPAN&gt;&amp;nbsp;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;need to sort all the points on a polyline by distance(from starting point) in ascending.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here i'm having a poly line with 7 points as p1,p2,p3,p4,p5,p6,p7. Distance between the points on the polyline as follows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P1 to P2 = 1 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P2 to P3 = 1 kms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P3 to P4 = 1 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P4 to P5 = 1.5 kms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P5 to P6 = 1.5 kms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P6 to P7 = 4 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;Total polyline Distance = 10 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;So, i want to arrange these points in ascending order based on their distance from start point of the poly line,i.e,.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;STRONG style="color: #000000; "&gt;Point&amp;nbsp; &amp;nbsp; Distance(from start point)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4.5 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;P7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10 kms&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/438125_ref8.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanking you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 07:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166728#M1906</guid>
      <dc:creator>Naresh_KumarK</dc:creator>
      <dc:date>2019-02-26T07:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identify the distance between two co-ordinates (Lat and Long) on a polyline</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166729#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the length of a line, and not the distance between two points, use the&amp;nbsp;GeometryEngine.LengthGeodetic method instead.&lt;/P&gt;&lt;P&gt;Or you can sum up the distances between P1-&amp;gt;P2, P2-&amp;gt;P3, P3-P4 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 19:44:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166729#M1907</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-02-26T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Identify the distance between two co-ordinates (Lat and Long) on a polyline</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166730#M1908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response Morten Nielsen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;As per your suggestion we would like to use the GeometryEngine.LengthGeodetic method to find the length of a polyline between two points. Please note that GeometryEngine.LengthGeodetic expects poly line as a parameter. Could you please explain how do we split the above long poly line into parts at each points as small poly lines or links so that we can calculate the distance for each small poly line or link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identify-the-distance-between-two-co-ordinates-lat/m-p/166730#M1908</guid>
      <dc:creator>Naresh_KumarK</dc:creator>
      <dc:date>2019-02-28T12:49:01Z</dc:date>
    </item>
  </channel>
</rss>

