<?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>idea Add a rotate features method to arcpy allowing the angle and pivot coords to be specified in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idi-p/1326238</link>
    <description>&lt;P&gt;I'm currently using geopandas to iterate through individual features in ArcGIS Pro and rotate them. It would be great if a method was added to arcpy where features could be rotated easily by specifying an angle, and a pivot point as a coordinate pair/tuple/point features. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.edit.Rotate(in_features, angle, origin, radians)

Example:

import arcpy
arcpy.env.workspace = "C:/data"

arcpy.MakeFeatureLayer_management("platforms.shp", "platforms_lyr", whereclause="WTG_ID = 'AB01'")

arcpy.edit.Rotate("platforms_lyr", 30, (123456.1, 5465646.10), radians=False)

# Else, use list comp and search cursors to grab the angles and coordinates of each row in the attributes.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With cursors, the angle and origin coordinates could be derived from a field in the in_features or hard coded etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 06:53:12 GMT</pubDate>
    <dc:creator>MattHowe</dc:creator>
    <dc:date>2023-09-07T06:53:12Z</dc:date>
    <item>
      <title>Add a rotate features method to arcpy allowing the angle and pivot coords to be specified</title>
      <link>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idi-p/1326238</link>
      <description>&lt;P&gt;I'm currently using geopandas to iterate through individual features in ArcGIS Pro and rotate them. It would be great if a method was added to arcpy where features could be rotated easily by specifying an angle, and a pivot point as a coordinate pair/tuple/point features. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.edit.Rotate(in_features, angle, origin, radians)

Example:

import arcpy
arcpy.env.workspace = "C:/data"

arcpy.MakeFeatureLayer_management("platforms.shp", "platforms_lyr", whereclause="WTG_ID = 'AB01'")

arcpy.edit.Rotate("platforms_lyr", 30, (123456.1, 5465646.10), radians=False)

# Else, use list comp and search cursors to grab the angles and coordinates of each row in the attributes.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With cursors, the angle and origin coordinates could be derived from a field in the in_features or hard coded etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 06:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idi-p/1326238</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2023-09-07T06:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add a rotate features method to arcpy allowing the angle and pivot coords to be specified</title>
      <link>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1505290#M332</link>
      <description>&lt;P&gt;In the Arcpro 3.3 release they added to geometry objects &lt;STRONG&gt;scale&lt;/STRONG&gt; and &lt;STRONG&gt;move&lt;/STRONG&gt;, so lets hope they add rotate to a geometries list of methods.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 09:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1505290#M332</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2024-07-15T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add a rotate features method to arcpy allowing the angle and pivot coords to be specified - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1512352#M346</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're working on this!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 14:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1512352#M346</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-07-30T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add a rotate features method to arcpy allowing the angle and pivot coords to be specified - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1556831#M382</link>
      <description>&lt;P&gt;This idea has been implemented in ArcGIS Pro 3.4, please see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm#ESRI_SECTION1_AB3F982B6A174B74AFF373A90D77CA20" target="_self" rel="nofollow noopener noreferrer"&gt;the Python section of the What's New in ArcGIS Pro 3.4 topic&lt;/A&gt;&amp;nbsp;and scroll to ArcPy.&lt;/P&gt;
&lt;UL id="UL_B47FE8752BC04909ADBE1CAEB64A61FA"&gt;
&lt;LI id="LI_EAC68EC63E5544DE8CC37D7BDCD9D59F"&gt;Geometry objects can be rotated using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;rotate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/geometry.htm" target="_blank"&gt;Geometry—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;for additional details.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 15:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/add-a-rotate-features-method-to-arcpy-allowing-the/idc-p/1556831#M382</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-11-08T15:53:21Z</dc:date>
    </item>
  </channel>
</rss>

