<?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: Rotate Point Symbol in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505121#M39677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your main task is figuring out the angle of the line and transferring it to the point. You can do this using arcpy &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Polyline/018z00000008000000/"&gt;Polyline &lt;/A&gt;geometry vertices, good, old-fashioned trigonometry, and a &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Spatial_Join/00080000000q000000/"&gt;Spatial Join&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you've got some code going, post it for more help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 17:40:41 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2015-10-22T17:40:41Z</dc:date>
    <item>
      <title>Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505119#M39675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I am looking for data that would function in a field calculator and would automatically rotate a point symbol (or water pipe cap symbol) 90 degrees to a line featureclass. I have aprox.&amp;nbsp; three thousand point symbols and rotating all of them manually is cost prohibitive. Attached is an example of what I am trying to achieve and if there are other methods please share.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Larry Adgate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 16:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505119#M39675</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2015-10-22T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505120#M39676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry ... you might want to 'unanswer' your question as being answered, should you wish to get a response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505120#M39676</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-22T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505121#M39677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your main task is figuring out the angle of the line and transferring it to the point. You can do this using arcpy &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Polyline/018z00000008000000/"&gt;Polyline &lt;/A&gt;geometry vertices, good, old-fashioned trigonometry, and a &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#/Spatial_Join/00080000000q000000/"&gt;Spatial Join&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you've got some code going, post it for more help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 17:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505121#M39677</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-10-22T17:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505122#M39678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Darren, This is enough information to solve the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 18:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505122#M39678</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2015-10-22T18:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505123#M39679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some code that should get you most of the way there:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import math
... arcpy.CreateFeatureclass_management(r'in_memory','points',"POINT")
... arcpy.AddField_management(r'in_memory\points',"Angle","DOUBLE")
... sr = arcpy.Describe("line").spatialReference
... insCur = arcpy.da.InsertCursor(r'in_memory\points',["SHAPE@","Angle"])
... with arcpy.da.SearchCursor("line","SHAPE@",spatial_reference=sr) 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 part in row[0]:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; first = 1
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pnt in part:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if first == 0:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dx = pnt.X - prev.X
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dy = pnt.Y - prev.Y
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; angle = math.degrees(math.atan(dy/dx))+90
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insCur.insertRow([pnt,angle])
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prev = pnt
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; first = 0&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and the resulting points, symbolized using Arithmetic rotation style.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132851_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505123#M39679</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T22:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Point Symbol</title>
      <link>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505124#M39680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren, thanks for the script, this is really more than what I expected, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rotate-point-symbol/m-p/505124#M39680</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2015-10-26T14:38:33Z</dc:date>
    </item>
  </channel>
</rss>

