<?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: Get bearing of selected line feature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808850#M2283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brian,&lt;/P&gt;&lt;P&gt;Your math works because you're assuming you have a two point polyline which is why a bearing/direction property doesn't make sense for polylines in general as they could be made up of any number of segments and parts. The property isn't on segments either because they could be a curve. Pessimistic design &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 16:24:53 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-07-16T16:24:53Z</dc:date>
    <item>
      <title>Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808846#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't seem to find anything in the SDK or the forums here regarding getting the bearing of a selected line segment.&amp;nbsp; Is there a method somewhere that would do this for me??&amp;nbsp; I guess I could get the start and end point coordinates and figure it out myself, but I was hoping for something quick and easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 17:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808846#M2279</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-07-15T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808847#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;The Measure tool in Pro will show the Net Path Bearing when you use the Measure Distance option.&amp;nbsp; Would that be sufficient?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 18:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808847#M2280</guid>
      <dc:creator>ChristopherBertrand</dc:creator>
      <dc:date>2020-07-15T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808848#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually looking for something in the SDK for determining the bearing of a selected line feature.&amp;nbsp; For example, as I go iterate through a collection of selected line features features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do things like .LENGTH to get the length, .Points to get the points, but what I am look for is .Bearing which does not seem to exist anywhere that I can find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808848#M2281</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-07-15T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808849#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, well I did find a solution that involves calculating it all out yourself, but I would have to imagine there is something pre-built into the SDK that would allow us to do this without all the math.&amp;nbsp; If there is, please let me know.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double Rad2Degrees = 180 / Math.PI;&lt;BR /&gt; var lineBuilder = new LineBuilder(fromPoint, toPoint);&lt;BR /&gt; var lineSeg = lineBuilder.ToSegment();&lt;BR /&gt; var degrees = lineSeg.Angle * Rad2Degrees;&lt;BR /&gt; degrees = 90 - degrees;&lt;BR /&gt; if (degrees &amp;lt; 0)&lt;BR /&gt; degrees = degrees + 360;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808849#M2282</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-07-15T19:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808850#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brian,&lt;/P&gt;&lt;P&gt;Your math works because you're assuming you have a two point polyline which is why a bearing/direction property doesn't make sense for polylines in general as they could be made up of any number of segments and parts. The property isn't on segments either because they could be a curve. Pessimistic design &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 16:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808850#M2283</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-16T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808851#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/98767"&gt;Brian Bulla&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/migrated-users/3324"&gt;Sean Jones&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't manage to find that bearing function in sdk before as I have same requirement like what Brian encounter before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved it in old school way of calculation borrowing from cpp code.&lt;/P&gt;&lt;P&gt;Below is the reference I used last time.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.codeguru.com/cpp/cpp/algorithms/article.php/c5115/Geographic-Distance-and-Azimuth-Calculations.htm" title="https://www.codeguru.com/cpp/cpp/algorithms/article.php/c5115/Geographic-Distance-and-Azimuth-Calculations.htm"&gt;Geographic Distance and Azimuth Calculations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 02:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808851#M2284</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-17T02:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get bearing of selected line feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808852#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/327338"&gt;Than Aung&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3324"&gt;Sean Jones&lt;/A&gt;‌:&amp;nbsp; Since there does seem to be a need from users to calculate the bearing between two points, is there any way that esri could consider adding this sort of functionality to the SDK?&amp;nbsp; Given two points, to build in all the math required to do this calculation??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Years ago I became quite familiar with another SDK called the Franson GPS SDK, which had all sort of functionality like that built right into the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways....just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 19:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-bearing-of-selected-line-feature/m-p/808852#M2285</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-07-17T19:32:55Z</dc:date>
    </item>
  </channel>
</rss>

