<?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: how do you calculate rotation angle for data driven pages in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201116#M2613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone found a Simple solution to this? I am experiencing the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 22:00:21 GMT</pubDate>
    <dc:creator>Randy_A_Stapleton</dc:creator>
    <dc:date>2015-02-27T22:00:21Z</dc:date>
    <item>
      <title>how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201113#M2610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using data driven pages with a pre-defined strip map grid. I would like to add the required rotation angle to an attribute field in my index layer. I can't find a way to make this work. I've tried the Calculate Grid Convergence Angle tool but this gives values that don't make sense (all values appear to be between -2 and 2, when the real rotation is far greater than that in most cases). I can make this work if I use the program to create the strip map grid, but not if I use an existing grid layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 16:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201113#M2610</guid>
      <dc:creator>KarlKeough</dc:creator>
      <dc:date>2011-10-04T16:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201114#M2611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Calculate Grid Convergence Angle tool calculates the angle for true north from the center of each polygon. If you use the Strip Map Index tool in the Data Driven Pages toolset to create your index features the angle will be populated automatically. If you already have an index feature layer you can use one of the COGO Report tools on the COGO toolbar to measure the angles. I believe the Angle Between Two Lines, or the Distance and Direction tool will give you the angle you need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 21:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201114#M2611</guid>
      <dc:creator>DavidWatkins</dc:creator>
      <dc:date>2011-10-05T21:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201115#M2612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's much harder than that! I frequently want to adjust stripmap angles after they have been created and it is very difficult to calculate the angle of a polygon. COGO tools are no use because they only handle lines. You would have to split the polygons back to lines and then you would still not have a useful angle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote my own Python script and used math.tan2(y/x) to get bearings, that then had to be normalised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use the new tool in 10.x Data Management&amp;gt;Features&amp;gt;Maximum Bounding Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and set the option "Add geometry" which includes a nice field MBG_orientation suitable to use, but of course it is now in a new featureclass with all your nice attributes trashed, so you would have to make sure you group by SMAP_NUM , join back and recalculate. Still a bit less work that my Python script. But here it is anyway in case it helps you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# UpdateAngle.py
# assumes rectangular polygons
# find bearing of longest side
# might have trouble with up
# 2 June 2011
# Kim Ollivier

import arcgisscripting
from math import *
import datetime
gp = arcgisscripting.create(9.3)
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer = sys.argv[1]
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer = "stripindex"
&amp;nbsp;&amp;nbsp;&amp;nbsp; ws = 'e:/teararoa/nz/current.gdb'
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = ws
if not gp.Exists(ws):
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ws",ws
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception
rotField = "smap_angle"
if&amp;nbsp; not gp.ListFields(layer,rotField):
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.AddField(layer,rotField,"FLOAT")

def calcbearing(dPt):
&amp;nbsp;&amp;nbsp;&amp;nbsp; '''
&amp;nbsp;&amp;nbsp;&amp;nbsp; calculate bearing of longest side
&amp;nbsp;&amp;nbsp;&amp;nbsp; '''
&amp;nbsp;&amp;nbsp;&amp;nbsp; # points
&amp;nbsp;&amp;nbsp;&amp;nbsp; pt1 = dPt[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp; pt2 = dPt[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp; pt3 = dPt[3]
&amp;nbsp;&amp;nbsp;&amp;nbsp; # lengths
&amp;nbsp;&amp;nbsp;&amp;nbsp; l1 = hypot(pt2[0] - pt1[0],pt2[1] - pt1[1])
&amp;nbsp;&amp;nbsp;&amp;nbsp; l2 = hypot(pt3[0] - pt2[0],pt3[1] - pt2[1])
&amp;nbsp;&amp;nbsp;&amp;nbsp; # bearings
&amp;nbsp;&amp;nbsp;&amp;nbsp; b1 = atan2(pt2[1] - pt1[1],pt2[0] - pt1[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp; b2 = atan2(pt3[1] - pt2[1],pt3[0] - pt2[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp; # print "test",round(l1),round(l2),degrees(b1),degrees(b2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; # print dPt
&amp;nbsp;&amp;nbsp;&amp;nbsp; if l1 &amp;gt; l2 :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; degree = degrees(b1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; degree = degrees(b2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = 90.0 - degree
&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp; bearing &amp;gt; 90:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = bearing - 180
&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp; bearing &amp;lt; -90:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bearing = bearing + 180
&amp;nbsp;&amp;nbsp;&amp;nbsp; return bearing
cur = gp.UpdateCursor(layer) ##,"ID = 1")
row = cur.next()
print
while row:
&amp;nbsp;&amp;nbsp;&amp;nbsp; feat = row.Shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; for partNum in range(feat.partCount) :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; part = feat.getPart(partNum)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dPt = {}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pt in iter(lambda: part.next(),None): # stops at null pt
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+=1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dPt&lt;N&gt; = (pt.X,pt.Y)
&amp;nbsp;&amp;nbsp;&amp;nbsp; rotation = calcbearing(dPt)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(rotField,rotation)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue("LastUpdate",datetime.datetime.now())
&amp;nbsp;&amp;nbsp;&amp;nbsp; # print row.objectid,row.id,row.island,rotation #,dPt
&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row = cur.next()
del row,cur&lt;/N&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next the challenge will be to write something that will rotate the feature from the attribute. Numpy will be useful here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201115#M2612</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T10:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201116#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone found a Simple solution to this? I am experiencing the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 22:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201116#M2613</guid>
      <dc:creator>Randy_A_Stapleton</dc:creator>
      <dc:date>2015-02-27T22:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201117#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you will still have to rely on a custom python script, although using arcpy geometry objects will likely shorten Kim's script considerably. I'll try to follow up on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 22:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201117#M2614</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-27T22:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201118#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a 10.1 script you can use to calculate the data driven page rotation angle into a field called calcAngle, for an index feature class of rectangles.&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
... with arcpy.da.UpdateCursor("RECTANGLE_INDEX_FEATURE CLASS",["SHAPE@","calcAngle"]) 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; points = []
...&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; 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; points.append(pnt)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines = []
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(1,3):
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(arcpy.Polyline(arcpy.Array([points&lt;I&gt;,points[i-1]])))&lt;/I&gt;
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lines[0].length &amp;gt; lines[1].length:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstShort = 0
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstShort = 1
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dx = points[firstShort].X - points[firstShort+1].X
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dy = points[firstShort].Y - points[firstShort+1].Y
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang = math.degrees(math.atan(dy/dx))
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = 360-ang
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201118#M2615</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201119#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for Darren's script which works perfectly. However I found it requires the 4 points of the polygon be created in a certain order, which might be all right for index polygons created via DDP tool, but in our case we often got the index polygons from other source like CAD design where how it was created not always guaranteed. So I modified Darren's code a bit to allow the calculation work on polygons created in any direction. cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 06:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201119#M2616</guid>
      <dc:creator>JackZHANG</dc:creator>
      <dc:date>2015-03-09T06:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201120#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, Darren's script was originally setup for rectangles, but it looks like your version will work with polygons of any number or vertices. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I am not an advanced user and have generally always stayed within the confines of the cookie cutter tools in Arcmap. I don't know how to implement a script in Arcmap. Can anyone refer me to a good thread or link on how to do this so I can actually use this thing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All - what a great community this is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201120#M2617</guid>
      <dc:creator>JohnUrbano1</dc:creator>
      <dc:date>2016-02-18T02:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201121#M2618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks exactly like what I need however I cannot get the code to work for me. I am trying this in 10.3. I get the error message :Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;TypeError: 'float' object is not iterable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the Feature class and field names to match my layer. ("Release_Grid",["Shape","calcAngle"]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:13:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201121#M2618</guid>
      <dc:creator>RichardKennedy2</dc:creator>
      <dc:date>2017-09-26T13:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201122#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you use "SHAPE@", a special token for the actual geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 16:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201122#M2619</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-09-26T16:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201123#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it! Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 16:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201123#M2620</guid>
      <dc:creator>RichardKennedy2</dc:creator>
      <dc:date>2017-09-26T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201124#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just letting you know there is a typo in your script on Line 15, this causes it to fail instantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I kept getting an error on Line 22, float division by zero (tan = - dy/dx). I didn't have time to&amp;nbsp;look into&amp;nbsp;it so I used the script posted by Darren in the end. It may be specific to my input, I'm not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 02:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201124#M2621</guid>
      <dc:creator>HayleyHume-Merry</dc:creator>
      <dc:date>2019-02-13T02:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201125#M2622</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/188296"&gt;Hayley Hume-Merry&lt;/A&gt;‌ pointed out the typo. also &lt;A href="https://community.esri.com/migrated-users/156634"&gt;John Urbano&lt;/A&gt;&amp;nbsp;I just saw your message today. the script only works for 4 point rectangle. However, FYI since then I have been using &lt;STRONG&gt;Minimum Bounding Geometry (by width)&lt;/STRONG&gt;&amp;nbsp;tool to work out the rotation angle of polygon of any shape. Just make sure you enabled the&amp;nbsp;&lt;STRONG&gt;Add geometry characteristics as attributes to output &lt;/STRONG&gt;option at the bottom of the tool. The output features include a field called&amp;nbsp;&lt;SPAN class=""&gt;&lt;EM&gt;MBG_Orientation,&lt;/EM&gt; which is the&amp;nbsp;&lt;/SPAN&gt;orientation of the longer side of the resulting rectangle. I could then derive the rotation angel depends on if the data drive page layout is&amp;nbsp;portrait or landscape.&lt;/P&gt;&lt;H1 style="font-weight: 300; font-size: 2.40307rem; margin: 0px 0px 1.55rem;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 05:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/201125#M2622</guid>
      <dc:creator>Jack_Zhang</dc:creator>
      <dc:date>2019-02-13T05:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: how do you calculate rotation angle for data driven pages</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/1308075#M13783</link>
      <description>&lt;P&gt;Still having this issue in July of 2023. Does anyone else have a better solution? The only work around I came up with is after you rotate the strip index polygons, then draw a line snapping to mid point of each polygon, then rerun the strip index tool with 0 overlap, and if necessary do a spatial join with the newly created polygons and field calculate the angle field if you want to update your original strip index polygons.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 21:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-do-you-calculate-rotation-angle-for-data/m-p/1308075#M13783</guid>
      <dc:creator>jireland_pickett</dc:creator>
      <dc:date>2023-07-13T21:02:00Z</dc:date>
    </item>
  </channel>
</rss>

