<?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 creating polylines from a point with specific azimouth in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693557#M22980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have a point and i want to create polylines for every 5o from 180o to 360o (north azimuth). How can i do that with azimuth and bearings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 20:50:54 GMT</pubDate>
    <dc:creator>KONPETROV</dc:creator>
    <dc:date>2015-02-09T20:50:54Z</dc:date>
    <item>
      <title>creating polylines from a point with specific azimouth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693557#M22980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have a point and i want to create polylines for every 5o from 180o to 360o (north azimuth). How can i do that with azimuth and bearings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 20:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693557#M22980</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-02-09T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: creating polylines from a point with specific azimouth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693558#M22981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want geodesic line features, check the help top here on &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Bearing_Distance_To_Line/0017000000ts000000/"&gt;distance and bearing&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693558#M22981</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-09T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: creating polylines from a point with specific azimouth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693559#M22982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how you can automate this with arcpy geometry objects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import math
&amp;gt;&amp;gt;&amp;gt; length = 100000
&amp;gt;&amp;gt;&amp;gt; lines = []
&amp;gt;&amp;gt;&amp;gt; degrees = 5
&amp;gt;&amp;gt;&amp;gt; with arcpy.da.SearchCursor("YOUR_POINT_LAYER_NAME_HERE","SHAPE@") as cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(360/degrees):
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dx = math.cos(math.radians(i*degrees))*length
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dy = math.sin(math.radians(i*degrees))*length
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startPoint = row[0].centroid
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endPoint = arcpy.Point(row[0].centroid.X+dx,row[0].centroid.Y+dy)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line = arcpy.Polyline(arcpy.Array([startPoint,endPoint]))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(line)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(lines,'in_memory\lines')&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60247" alt="Capture.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/60247_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;edit: I just read the point about limiting between 180 and 360. This can be incorporated into the above script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693559#M22982</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T05:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: creating polylines from a point with specific azimouth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693560#M22983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THAT WAS HELP F U L L !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 23:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-polylines-from-a-point-with-specific/m-p/693560#M22983</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-02-09T23:43:04Z</dc:date>
    </item>
  </channel>
</rss>

