<?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: Draw a line from a point knowing the direction and distance from it in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137918#M76123</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;, I am able to draw a line from a point based on given bearing (e.x. NE 0 deg 12 min 20 sec) and distance but couldn't find a way to draw a curved line from a point given bearing (e.x. NE 0 deg 12 min 20 sec), radius and arc length. Are you aware of how I can achieve it? Below is an example of how user will enter bearing, distance, radius and arclength values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mohammed_raufshaikh_0-1643300262066.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32465i3C0BC1BA601E3040/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mohammed_raufshaikh_0-1643300262066.png" alt="mohammed_raufshaikh_0-1643300262066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 16:18:35 GMT</pubDate>
    <dc:creator>mohammed_raufshaikh</dc:creator>
    <dc:date>2022-01-27T16:18:35Z</dc:date>
    <item>
      <title>Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128714#M75675</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;IS it possible to draw geometry by knowing the COGO dimension of a parcel from a deed of sale agreement using ARcgis Javascript API? I would like to start drawing from a know point and then traverse the geometry by entering the bearing, distance, radius and other cogo parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same operation can be performed in ArcGIS pro using the Traverse tool under COGO section&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/editing/create-a-traverse.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/editing/create-a-traverse.htm&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Any help or idea on how to go about this will be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rauf&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128714#M75675</guid>
      <dc:creator>mohammed_raufshaikh</dc:creator>
      <dc:date>2021-12-23T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128720#M75676</link>
      <description>&lt;P&gt;The &lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-parcel-drafter.htm" target="_blank"&gt;Parcel Drafter WAB Widget&lt;/A&gt; already does this, though it's only available in the 3.x JS API. You could open it up and see if you can convert its source code to work in the 4.x API.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128720#M75676</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-12-23T18:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128724#M75677</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;Thanks for your response but I don't see the Parcel Drafter Widget in 3.x JS API as well, looks like it is available as part of ArcGIS Web AppBuilder.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rauf&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128724#M75677</guid>
      <dc:creator>mohammed_raufshaikh</dc:creator>
      <dc:date>2021-12-23T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128730#M75679</link>
      <description>&lt;P&gt;Yes, you'd probably need to download the WAB Developer Edition to look at what's going on in that widget, but it's built for the 3.x API.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128730#M75679</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-12-23T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128738#M75680</link>
      <description>&lt;P&gt;Ok, Thanks for your inputs. This gives me some direction to go forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rauf&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1128738#M75680</guid>
      <dc:creator>mohammed_raufshaikh</dc:creator>
      <dc:date>2021-12-23T19:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130473#M75778</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/272876"&gt;@mohammed_raufshaikh&lt;/a&gt;&amp;nbsp;here's a snippet the will help you find the new point using latitude, longitude, bearing and radius (distance). That should at least get you started. Once you have the new point you can draw a polyline using the beginning and ending points. Here's a sample that demonstrates the concepts for creating a line (see item number 3 and 4):&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/intro-graphics/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/intro-graphics/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        function bearingDistance(lat, lon, radius, bearing){
          let lat1Rads = toRad(lat);
          let lon1Rads = toRad(lon);
          const R_KM = 6371; // radius in KM
          let d = radius/R_KM; //angular distance on earth's surface

          let bearingRads = toRad(bearing);
          let lat2Rads = Math.asin(
            Math.sin(lat1Rads) * Math.cos(d) + Math.cos(lat1Rads) * Math.sin(d) * Math.cos(bearingRads)
          );

          let lon2Rads = lon1Rads + Math.atan2(
            Math.sin(bearingRads) * Math.sin(d) * Math.cos(lat1Rads),
            Math.cos(d) - Math.sin(lat1Rads) * Math.sin(lat2Rads)
          );

          return {
            latitude: toDeg(lat2Rads),
            longitude: toDeg(lon2Rads)
          }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 18:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130473#M75778</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-01-04T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130476#M75779</link>
      <description>&lt;P&gt;Oops, 2 functions got cut off and I can't edit my previously reply. You'll also need these two functions:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        function toRad(degrees){
          return degrees * Math.PI / 180;
        }

        function toDeg(radians){
          return radians * 180 / Math.PI;
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jan 2022 18:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130476#M75779</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-01-04T18:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130853#M75794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;, Thanks a lot for your inputs. I will check it out and will update on the progress.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 16:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1130853#M75794</guid>
      <dc:creator>raufshkh85</dc:creator>
      <dc:date>2022-01-05T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137918#M76123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;, I am able to draw a line from a point based on given bearing (e.x. NE 0 deg 12 min 20 sec) and distance but couldn't find a way to draw a curved line from a point given bearing (e.x. NE 0 deg 12 min 20 sec), radius and arc length. Are you aware of how I can achieve it? Below is an example of how user will enter bearing, distance, radius and arclength values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mohammed_raufshaikh_0-1643300262066.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32465i3C0BC1BA601E3040/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mohammed_raufshaikh_0-1643300262066.png" alt="mohammed_raufshaikh_0-1643300262066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 16:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137918#M76123</guid>
      <dc:creator>mohammed_raufshaikh</dc:creator>
      <dc:date>2022-01-27T16:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137937#M76127</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/272876"&gt;@mohammed_raufshaikh&lt;/a&gt;, I'm aware of the formulas to do it but haven't researched it recently, you might marked this post as answered and create a new post about curved lines to get better visibility from the community. Here's a simple example of how to draw a curved line between two points: &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curved-line-between-two-points/td-p/253177" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curved-line-between-two-points/td-p/253177&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 17:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137937#M76127</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-01-27T17:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a line from a point knowing the direction and distance from it</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137994#M76135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;, I created another post here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curve-in-arcgis-jsapi-given-a-start/m-p/1137933#M76125" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curve-in-arcgis-jsapi-given-a-start/m-p/1137933#M76125&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 18:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-a-line-from-a-point-knowing-the-direction-and/m-p/1137994#M76135</guid>
      <dc:creator>mohammed_raufshaikh</dc:creator>
      <dc:date>2022-01-27T18:34:12Z</dc:date>
    </item>
  </channel>
</rss>

