<?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: geodesicUtils.geodesicDistance azimuth and reverse azimuth almost equally in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1567854#M86243</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/83360"&gt;@SebastianKrings&lt;/a&gt;&lt;/SPAN&gt;, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is &lt;A href="https://www.esri.com/en-us/contact?rsource=%2Fcontact#c=us&amp;amp;t=5" target="_blank"&gt;Esri Technical Support&lt;/A&gt;. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.&lt;/P&gt;
&lt;P&gt;By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.&lt;/P&gt;
&lt;P&gt;As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;*Note that this is a scripted message prompted when posts allude to a potential product bug.&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 16:38:51 GMT</pubDate>
    <dc:creator>JesseCloutier</dc:creator>
    <dc:date>2024-12-12T16:38:51Z</dc:date>
    <item>
      <title>geodesicUtils.geodesicDistance azimuth and reverse azimuth almost equally</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566000#M86212</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I am using&amp;nbsp;&lt;SPAN&gt;geodesicUtils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;geodesicDistance but always getting pretty similar values for azimuth and reverse azimuth.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;This is how I call the distance calculation of the geodesicUtils:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;bearing&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;geodesicUtils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;geodesicDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;point1Wgs84&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;point2Wgs84&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"kilometers"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;This is how a result looks like:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;z {distance: 61.525187404214556, azimuth: 90.42038020754926, reverseAzimuth: 91.18218544411303}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class=""&gt;While the azimuth looks good (that was a line from west to east), the reverse azimuth is almost the same value.&lt;/DIV&gt;&lt;DIV class=""&gt;From what I understood I expected the reverse azimuth to be about 270° instead.&lt;/DIV&gt;&lt;DIV class=""&gt;When drawing a line from south to north, the azimuth is abut 0-1° and reverse azimuth too, which I would expect to be about 180° instead.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Can anyone help me with these struggles?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Dec 2024 22:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566000#M86212</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2024-12-07T22:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: geodesicUtils.geodesicDistance azimuth and reverse azimuth almost equally</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566529#M86214</link>
      <description>&lt;P&gt;This may be a bug in the SDK.&amp;nbsp; One might expect the algorithm to calculate the azimuth first, and then calculate the reverse azimuth off of that value by simply adding or subtracting 180 (depending on whether the calculated azimuth is less than 180 or not, respectively), but that's definitely not the case here, because the SDK is calculating them independently of each other (for the most part).&lt;/P&gt;&lt;P&gt;Since it appears the azimuth value is correct, you can just fix the reverseAzimuth value manually after the fact:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const bearing = geodesicUtils.geodesicDistance(point1Wgs84, point2Wgs84, "kilometers");

//fix the reverseAzimuth value
bearing.reverseAzimuth = ((bearing.azimuth &amp;gt;= 180) ? bearing.azimuth - 180 : bearing.azimuth + 180);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 23:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566529#M86214</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-12-09T23:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: geodesicUtils.geodesicDistance azimuth and reverse azimuth almost equally</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566531#M86215</link>
      <description>&lt;P&gt;Yeah exactly, the difference should be 180°.&lt;/P&gt;&lt;P&gt;Not great that it is a bug, but knowing it is a bug is great.&lt;BR /&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 23:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1566531#M86215</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2024-12-09T23:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: geodesicUtils.geodesicDistance azimuth and reverse azimuth almost equally</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1567854#M86243</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/83360"&gt;@SebastianKrings&lt;/a&gt;&lt;/SPAN&gt;, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is &lt;A href="https://www.esri.com/en-us/contact?rsource=%2Fcontact#c=us&amp;amp;t=5" target="_blank"&gt;Esri Technical Support&lt;/A&gt;. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.&lt;/P&gt;
&lt;P&gt;By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.&lt;/P&gt;
&lt;P&gt;As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;*Note that this is a scripted message prompted when posts allude to a potential product bug.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 16:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geodesicutils-geodesicdistance-azimuth-and-reverse/m-p/1567854#M86243</guid>
      <dc:creator>JesseCloutier</dc:creator>
      <dc:date>2024-12-12T16:38:51Z</dc:date>
    </item>
  </channel>
</rss>

